pylance things
This commit is contained in:
+3
-2
@@ -21,10 +21,11 @@ PLATFORM_NAME = platform.system().lower()
|
||||
APP_NAME = "flares"
|
||||
|
||||
if PLATFORM_NAME == 'darwin':
|
||||
LOG_FILE = os.path.join(os.path.dirname(sys.executable), f"../../../{APP_NAME}_updater.log")
|
||||
_log_path = os.path.join(os.path.dirname(sys.executable), f"../../../{APP_NAME}_updater.log")
|
||||
else:
|
||||
LOG_FILE = os.path.join(os.getcwd(), f"{APP_NAME}_updater.log")
|
||||
_log_path = os.path.join(os.getcwd(), f"{APP_NAME}_updater.log")
|
||||
|
||||
LOG_FILE = _log_path
|
||||
|
||||
def log(msg):
|
||||
with open(LOG_FILE, "a", encoding="utf-8") as f:
|
||||
|
||||
Reference in New Issue
Block a user