mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
20 lines
No EOL
559 B
JavaScript
Executable file
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);
|
|
} |