User Tools

Site Tools


wiki:create_selfcontained_python_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:create_selfcontained_python_script [2021/01/21 15:20] – created antisawiki:create_selfcontained_python_script [2022/12/22 14:12] (current) – [Go where your script is and execute] add info about additional files antisa
Line 13: Line 13:
      
   ./yourscript   ./yourscript
-  + 
 + 
 +If there are additional files needed by the script for example //settings.py// you need to add this e.g. 
 + 
 +  pyinstaller --onefile yourscript.py --add-data 'settings.py:.' --add-data 'secondfile.txt:.' 
 + 
 +Paths to these additional files are relative to yourscript.py.
 ===== Hide console window ===== ===== Hide console window =====
 Pass ''--noconsole'' option to pyinstaller Pass ''--noconsole'' option to pyinstaller
wiki/create_selfcontained_python_script.1611238849.txt.gz · Last modified: 2021/01/21 15:20 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki