Detect-It-Easy/db/PE/Python.3.sg
2024-07-03 22:45:31 +03:00

20 lines
No EOL
559 B
JavaScript
Executable file

// DIE's signature file
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);
}