def in_pyz():
    pyz_file = os.path.abspath(os.path.dirname(__file__))
    if zipfile.is_zipfile(pyz_file):
        return True
    else:
        return False
Determine if running in pyz archive
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/__main__.py/in_pyz