fix autolauncher import
This commit is contained in:
parent
4c7ef593be
commit
4884184e4a
10
Utils.py
10
Utils.py
|
@ -134,16 +134,6 @@ def open_file(filename):
|
||||||
subprocess.call([open_command, 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
|
parse_yaml = safe_load
|
||||||
unsafe_parse_yaml = functools.partial(load, Loader=Loader)
|
unsafe_parse_yaml = functools.partial(load, Loader=Loader)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ import concurrent.futures
|
||||||
import sys
|
import sys
|
||||||
import typing
|
import typing
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
|
||||||
from pony.orm import db_session, select, commit
|
from pony.orm import db_session, select, commit
|
||||||
|
|
||||||
|
@ -29,9 +30,6 @@ class AlreadyRunningException(Exception):
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
class Locker(CommonLocker):
|
class Locker(CommonLocker):
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue