30 juil 2014 · Creating an Executable from a Python Script The following file (taken from the PyInstaller test suite) is used by PyInstaller to add
directory path to my Python script (ScriptEditorV3 py) to create a standalone executable application (e g , C:\Python27\ ArcGIS10 4\ Scripts> pyinstaller exe –
4 \ Scripts\dist\ScriptEditorV3 exe) 8 I double clicked on my executable file in the 'dist' folder to test run the application I then created a shortcut
3 run rootFinder(path) My simplest function here It simply executes the exe file via os system (i e $ /rootFinder
app can be summarized as follows: Do _not_ build Python in the exe file directly On Windows, Python must be a DLL to manage the import modules that are
This will generate a new script drivescript py and a spec file for the script These options are allowed: --debug Use the verbose version of the executable
The one executable file contains an embedded archive of all the Python modules used by your script, as well as compressed copies of any non-Python support files
needs to do is unzip the package and run the executable file you created A custom Save the setup py script in the same directory as the program file