mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
commit mix fixes
This commit is contained in:
1 parent
859c7aa293
commit
b5efc4bc9d
2 files changed
+3
-4
No files matched your search
@@ -25,7 +25,7 @@ BLITZAPP_VEHICLE_FILE='list.xml'
|
|||||||
wg : WG | None = None
|
wg : WG | None = None
|
||||||
|
|
||||||
## main() -------------------------------------------------------------
|
## main() -------------------------------------------------------------
|
||||||
async def main(argv: list[str]) -> None:
|
async def main() -> None:
|
||||||
global wg
|
global wg
|
||||||
# set the directory for the script
|
# set the directory for the script
|
||||||
os.chdir(os.path.dirname(sys.argv[0]))
|
os.chdir(os.path.dirname(sys.argv[0]))
|
||||||
@@ -245,5 +245,4 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
if not isinstance(get_event_loop_policy(), WindowsSelectorEventLoopPolicy):
|
if not isinstance(get_event_loop_policy(), WindowsSelectorEventLoopPolicy):
|
||||||
set_event_loop_policy(WindowsSelectorEventLoopPolicy())
|
set_event_loop_policy(WindowsSelectorEventLoopPolicy())
|
||||||
#asyncio.run(main(sys.argv[1:]), debug=True)
|
run(main())
|
||||||
run(main(sys.argv[1:]))
|
|
||||||
Reference in new issue
Block a user