// Detect It Easy: detection rule file format

init("library", "Python"); // !!!! 🐓🐓🐓🐓🐓 !!!!

function detect(bShowType, bShowVersion, bShowOptions) {
    var aPython = PE.isLibraryPresentExp(/^python(\d)(\d+)/i);
    if (aPython) {
        sVersion = aPython[1] + "." + aPython[2];
        bDetected = true;
    }

    var aPython2 = PE.isLibraryPresentExp(/^libpython(\d.\d)/i);
    if (aPython2) {
        sVersion = aPython2[1];
        bDetected = true;
    }


    _setLang("Python", bDetected);
    return result(bShowType, bShowVersion, bShowOptions);
}