From 6a37169394b0c0c0ddba2639938de5484b45259b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 14 Jul 2020 22:00:18 +0200 Subject: [PATCH] PyInstaller --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3547db5..7a94ea0 100644 --- a/README.md +++ b/README.md @@ -3466,7 +3466,7 @@ $ pyinstaller script.py --onefile # Compiles into './dist/script' c $ pyinstaller script.py --windowed # Compiles into './dist/script' windowed app. $ pyinstaller script.py --add-data ':.' # Adds file to the root of the executable. ``` -* **Paths of files have to be changed to `'os.path.join(sys._MEIPASS, "")'`.** +* **File paths need to be changed to `'os.path.join(sys._MEIPASS, )'`.** ### Basic Script Template ```python diff --git a/index.html b/index.html index 7eab518..25900d1 100644 --- a/index.html +++ b/index.html @@ -2939,7 +2939,7 @@ $ pyinstaller script.py --add-data '<path>:.' -
  • Paths of files have to be changed to 'os.path.join(sys._MEIPASS, "<path>")'.
  • +
  • File paths need to be changed to 'os.path.join(sys._MEIPASS, <path>)'.
  • Basic Script Template

    #!/usr/bin/env python3
     #