def run(explode=False):
    if explode or not ZIP_SAFE:
        with explode_zip()():
            add_module_dir_to_sys_path(MODULE_DIR)
            return main()
    else:
        add_module_dir_to_sys_path(MODULE_DIR)
        sys.meta_path.append(SoImport())
        return main()


if __name__ == '__main__':
    # If PEX_EXPLODE is set, then it should always be exploded.
    explode = os.environ.get('PEX_EXPLODE', '0') != '0'

    # If PEX_INTERPRETER is set, then it starts an interactive console.
    if os.environ.get('PEX_INTERPRETER', '0') != '0':
        import code
        result = code.interact()
    # If PEX_PROFILE_FILENAME is set, then it collects profile information into the filename.
    elif os.environ.get('PEX_PROFILE_FILENAME'):
        with profile(os.environ['PEX_PROFILE_FILENAME'])():
            result = run(explode)
    else:
        result = run(explode)

    sys.exit(result)

6a428ed21770a4472f6053d72bacf37d0c1c1664
<mask token>

def run(explode=False):
    if explode or not ZIP_SAFE:
        with explode_zip()():
            add_module_dir_to_sys_path(MODULE_DIR)
            return main()
    else:
        add_module_dir_to_sys_path(MODULE_DIR)
        sys.meta_path.append(SoImport())
        return main()


<mask token>

def run(explode=False):
    if explode or not ZIP_SAFE:
        with explode_zip()():
            add_module_dir_to_sys_path(MODULE_DIR)
            return main()
    else:
        add_module_dir_to_sys_path(MODULE_DIR)
        sys.meta_path.append(SoImport())
        return main()


if __name__ == '__main__':
    explode = os.environ.get('PEX_EXPLODE', '0') != '0'
    if os.environ.get('PEX_INTERPRETER', '0') != '0':
        import code
        result = code.interact()
    elif os.environ.get('PEX_PROFILE_FILENAME'):
        with profile(os.environ['PEX_PROFILE_FILENAME'])():
            result = run(explode)
    else:
        result = run(explode)
    sys.exit(result)

def run(explode=False):
    if explode or not ZIP_SAFE:
        with explode_zip()():
            add_module_dir_to_sys_path(MODULE_DIR)
            return main()
    else:
        add_module_dir_to_sys_path(MODULE_DIR)
        sys.meta_path.append(SoImport())
        return main()


if __name__ == '__main__':
    # If PEX_EXPLODE is set, then it should always be exploded.
    explode = os.environ.get('PEX_EXPLODE', '0') != '0'

    # If PEX_INTERPRETER is set, then it starts an interactive console.
    if os.environ.get('PEX_INTERPRETER', '0') != '0':
        import code
        result = code.interact()
    # If PEX_PROFILE_FILENAME is set, then it collects profile information into the filename.
    elif os.environ.get('PEX_PROFILE_FILENAME'):
        with profile(os.environ['PEX_PROFILE_FILENAME'])():
            result = run(explode)
    else:
        result = run(explode)

    sys.exit(result)
