mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
fix autolauncher import
This commit is contained in:
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:
|
||||||
|
Reference in New Issue
Block a user