from auto_py_to_exe import __main__ as apte apte.__name__ = '__main__' apte.run()