File tree Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 2323 python -m pip install pyinstaller
2424 - name : Build Executable Binary
2525 run : |
26- pyinstaller cli.py --onefile
26+ pyinstaller callscript/ cli.py --onefile
2727 ls -a dist
2828 - name : Upload binaries to release
2929 uses : svenstaro/upload-release-action@v2
Original file line number Diff line number Diff line change 1+ from argparse import ArgumentParser
2+ from pathlib import Path
3+ from typing import List
4+
5+ from callscript import modify_code
6+
7+
8+ def main (args : List [str ] = None ):
9+ parser = ArgumentParser (description = "Extract Script into a Module using Comment Tags" )
10+ parser .add_argument ('script' , help = "Path to the script" )
11+
12+ args = parser .parse_args (args = args )
13+
14+ code = Path (args .script ).read_text ()
15+ meta = modify_code (code = code )
16+ new_code = meta ['code' ]
17+ print (new_code )
18+
19+
20+ if __name__ == '__main__' :
21+ main ()
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments