from auto_py_to_exe import __main__ as apte import pyinstaller_versionfile if __name__ == '__main__': pyinstaller_versionfile.create_versionfile_from_input_file( output_file="app_version_file.txt", input_file="app_metadata.yml" ) apte.__name__ = '__main__' apte.run()