|
@@ -1,5 +1,5 @@
|
|
import os
|
|
import os
|
|
-import os
|
|
|
|
|
|
+import sys
|
|
import appdirs
|
|
import appdirs
|
|
from dotenv import load_dotenv
|
|
from dotenv import load_dotenv
|
|
from window.DialogCustomVariables import DialogCustomVariables
|
|
from window.DialogCustomVariables import DialogCustomVariables
|
|
@@ -25,5 +25,7 @@ def load_variables():
|
|
|
|
|
|
if not os.path.exists(dotenv_path):
|
|
if not os.path.exists(dotenv_path):
|
|
DialogCustomVariables(dotenv_path).exec_()
|
|
DialogCustomVariables(dotenv_path).exec_()
|
|
|
|
+ if not os.path.exists(dotenv_path):
|
|
|
|
+ sys.exit()
|
|
|
|
|
|
load_dotenv(dotenv_path=dotenv_path)
|
|
load_dotenv(dotenv_path=dotenv_path)
|