diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | quick_lineup.py (renamed from ql/__main__.py) | 32 | ||||
-rw-r--r-- | quick_lineup.spec | 28 |
3 files changed, 46 insertions, 16 deletions
@@ -3,3 +3,5 @@ *.pyc __pycache__ /venv* +build +dist diff --git a/ql/__main__.py b/quick_lineup.py index e79056d..c63aad1 100644 --- a/ql/__main__.py +++ b/quick_lineup.py @@ -1,16 +1,16 @@ -import sys
-from .console import Console
-
-
-if len(sys.argv) < 3 or len(sys.argv) > 4:
- print('Give correct parameters: round, segment and (optionally) table')
- sys.exit(1)
-
-round = int(sys.argv[1])
-segment = int(sys.argv[2])
-if len(sys.argv) == 4:
- table = int(sys.argv[3])
-else:
- table = None
-
-Console(round, segment, table).run()
+import sys +from ql.console import Console + + +if len(sys.argv) < 3 or len(sys.argv) > 4: + print('Give correct parameters: round, segment and (optionally) table') + sys.exit(1) + +round = int(sys.argv[1]) +segment = int(sys.argv[2]) +if len(sys.argv) == 4: + table = int(sys.argv[3]) +else: + table = None + +Console(round, segment, table).run() diff --git a/quick_lineup.spec b/quick_lineup.spec new file mode 100644 index 0000000..f96a842 --- /dev/null +++ b/quick_lineup.spec @@ -0,0 +1,28 @@ +# -*- mode: python -*- + +block_cipher = None + + +a = Analysis(['quick_lineup.py'], + pathex=['Z:\\teamy-quick-lineup'], + binaries=None, + datas=None, + hiddenimports=['html.parser','http.cookies'], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + name='quick_lineup', + debug=False, + strip=False, + upx=True, + console=True ) |