fix autolauncher import

This commit is contained in:
Fabian Dill 2021-07-09 22:47:35 +02:00
parent 4c7ef593be
commit 4884184e4a
2 changed files with 1 additions and 13 deletions

View File

@ -134,16 +134,6 @@ def open_file(filename):
subprocess.call([open_command, filename])
def close_console():
if sys.platform == 'win32':
# windows
import ctypes.wintypes
try:
ctypes.windll.kernel32.FreeConsole()
except Exception:
pass
parse_yaml = safe_load
unsafe_parse_yaml = functools.partial(load, Loader=Loader)

View File

@ -7,6 +7,7 @@ import concurrent.futures
import sys
import typing
import time
import os
from pony.orm import db_session, select, commit
@ -29,9 +30,6 @@ class AlreadyRunningException(Exception):
if sys.platform == 'win32':
import os
class Locker(CommonLocker):
def __enter__(self):
try: