From 8e80cec14a4834ae2012959d61e473a2b430c6c4 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 25 Nov 2016 16:33:01 +0100 Subject: bootstrap file and environment for pyinstaller --- .gitignore | 2 ++ ql/__main__.py | 16 ---------------- quick_lineup.py | 16 ++++++++++++++++ quick_lineup.spec | 28 ++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 16 deletions(-) delete mode 100644 ql/__main__.py create mode 100644 quick_lineup.py create mode 100644 quick_lineup.spec diff --git a/.gitignore b/.gitignore index b20b868..0903698 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ *.pyc __pycache__ /venv* +build +dist diff --git a/ql/__main__.py b/ql/__main__.py deleted file mode 100644 index e79056d..0000000 --- a/ql/__main__.py +++ /dev/null @@ -1,16 +0,0 @@ -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() diff --git a/quick_lineup.py b/quick_lineup.py new file mode 100644 index 0000000..c63aad1 --- /dev/null +++ b/quick_lineup.py @@ -0,0 +1,16 @@ +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 ) -- cgit v1.2.3