Browse Source

Load /examples if not baangt.ini was found (first start)

bernhardbuhl 4 years ago
parent
commit
553244be5e
1 changed files with 6 additions and 2 deletions
  1. 6 2
      baangt/ui/ui.py

+ 6 - 2
baangt/ui/ui.py

@@ -354,8 +354,12 @@ class UI:
 
             self.readContentsOfGlobals()
         except Exception as e:
-            self.directory = os.getcwd()
-            pass
+            # if baangt.ini is not there. Default the directory to /examples.
+            self.directory = Path(os.getcwd()).joinpath("examples")
+            self.testRunFile = 'simpleAutomationpractice.xlsx'
+            self.configFile = 'globals.json'
+            self.mainWindowPosition = (20,30)
+            self.readContentsOfGlobals()
 
     @staticmethod
     def __convert_configPosition2Tuple(inString):