Browse Source

PyInstaller

pull/61/head
Jure Šorn 4 years ago
parent
commit
6a37169394
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
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 '<path>:.' # Adds file to the root of the executable.
```
* **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
```python

2
index.html

@ -2939,7 +2939,7 @@ $ pyinstaller script.py --add-data <span class="hljs-string">'&lt;path&gt;:.'</s
<ul>
<li><strong>Paths of files have to be changed to <code class="python hljs"><span class="hljs-string">'os.path.join(sys._MEIPASS, "&lt;path&gt;")'</span></code>.</strong></li>
<li><strong>File paths need to be changed to <code class="python hljs"><span class="hljs-string">'os.path.join(sys._MEIPASS, &lt;path&gt;)'</span></code>.</strong></li>
</ul>
<div><h3 id="basicscripttemplate">Basic Script Template</h3><pre><code class="python language-python hljs"><span class="hljs-comment">#!/usr/bin/env python3</span>
<span class="hljs-comment">#</span>

Loading…
Cancel
Save