Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0d2caa

Browse files
committed
Pyinstaller
1 parent 7c05e03 commit f0d2caa

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,12 +2933,12 @@
29332933
</code></pre>
29342934
<pre><code class="python language-python hljs">cdef enum &lt;enum_name&gt;: &lt;member_name_1&gt;, &lt;member_name_2&gt;, ...
29352935
</code></pre>
2936-
<div><h2 id="appendix"><a href="#appendix" name="appendix">#</a>Appendix</h2><div><h3 id="pyinstaller">PyInstaller</h3><pre><code class="bash language-bash hljs">$ pip3 install pyinstaller
2936+
<div><h2 id="appendix"><a href="#appendix" name="appendix">#</a>Appendix</h2><div><h3 id="pyinstaller">PyInstaller</h3><pre><code class="bash language-bash hljs"><code class="bash language-bash hljs">$ pip3 install pyinstaller
29372937
$ pyinstaller script.py <span class="hljs-comment"># Compiles into './dist/script' directory.</span>
29382938
$ pyinstaller script.py --onefile <span class="hljs-comment"># Compiles into './dist/script' console app.</span>
29392939
$ pyinstaller script.py --windowed <span class="hljs-comment"># Compiles into './dist/script' windowed app.</span>
2940-
$ pyinstaller script.py --add-data <span class="hljs-string">'&lt;path&gt;:.'</span> <span class="hljs-comment"># Adds file to the root of the executable.</span>
2941-
</code></pre></div></div>
2940+
$ pyinstaller script.py --add-data '&lt;path&gt;:.' <span class="hljs-comment"># Adds file to the root of the executable.</span>
2941+
</code></code></pre></div></div>
29422942

29432943

29442944
<ul>

parse.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ const DATACLASS =
6666
const DATETIME =
6767
'<code class="python language-python hljs"><span class="hljs-string">\'&lt;DT&gt; = resolve_imaginary(&lt;DT&gt;)\'</span></code>';
6868

69+
const PYINSTALLER =
70+
'<code class="bash language-bash hljs">$ pip3 install pyinstaller\n' +
71+
'$ pyinstaller script.py <span class="hljs-comment"># Compiles into \'./dist/script\' directory.</span>\n' +
72+
'$ pyinstaller script.py --onefile <span class="hljs-comment"># Compiles into \'./dist/script\' console app.</span>\n' +
73+
'$ pyinstaller script.py --windowed <span class="hljs-comment"># Compiles into \'./dist/script\' windowed app.</span>\n' +
74+
'$ pyinstaller script.py --add-data \'&lt;path&gt;:.\' <span class="hljs-comment"># Adds file to the root of the executable.</span>\n' +
75+
'</code>'
76+
6977
const DIAGRAM_1_A =
7078
'+------------------+------------+------------+------------+\n' +
7179
'| | Sequence | Collection | Iterable |\n' +
@@ -493,7 +501,8 @@ function fixHighlights() {
493501
$(`code:contains(@lru_cache(maxsize=None))`).html(LRU_CACHE);
494502
$(`code:contains(\'<class_name>\', <parents_tuple>, <attributes_dict>)`).html(TYPE);
495503
$(`code:contains(make_dataclass(\'<class_name>\')`).html(DATACLASS);
496-
$(`code:contains((<DT>))`).html(DATETIME)
504+
$(`code:contains((<DT>))`).html(DATETIME);
505+
$(`code:contains(pip3 install pyinstaller)`).html(PYINSTALLER);
497506
}
498507

499508
function preventPageBreaks() {

0 commit comments

Comments
 (0)