init("packer", "py2exe");

function detect(bShowType, bShowVersion, bShowOptions) {
    for (var i = 0; i < PE.getNumberOfResources(); i++) {
        // py2exe magic number
        if (PE.compare("12345678", PE.resource[i].Offset)) {
            bDetected = true;
            break;
        }
    }

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