mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-25 02:59:53 +01:00
FIX: OPT_MODE referenced before assignment in main()
This commit is contained in:
1 parent
9dcd15e289
commit
10cb858039
1 file changed
+2
-1
@@ -791,12 +791,13 @@ OPT_MODE_HELP = 'help'
|
|||||||
OPT_MODES = [ None, OPT_MODE_TEAM, OPT_MODE_EXTENDED, OPT_MODE_HELP ]
|
OPT_MODES = [ None, OPT_MODE_TEAM, OPT_MODE_EXTENDED, OPT_MODE_HELP ]
|
||||||
|
|
||||||
async def main(argv):
|
async def main(argv):
|
||||||
global wg, wi, WG_APP_ID
|
global wg, wi, WG_APP_ID, OPT_MODE
|
||||||
# set the directory for the script
|
# set the directory for the script
|
||||||
current_dir = os.getcwd()
|
current_dir = os.getcwd()
|
||||||
os.chdir(os.path.dirname(sys.argv[0]))
|
os.chdir(os.path.dirname(sys.argv[0]))
|
||||||
|
|
||||||
## Default options:
|
## Default options:
|
||||||
|
OPT_MODE = OPT_MODE_DEFAULT
|
||||||
OPT_DB = False
|
OPT_DB = False
|
||||||
OPT_HIST = False
|
OPT_HIST = False
|
||||||
OPT_STAT_FUNC = 'player'
|
OPT_STAT_FUNC = 'player'
|
||||||
|
|||||||
Reference in new issue
Block a user