src/eric7/eric7_configure.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
diff -r 45e7bb09c120 -r 80c06d472826 src/eric7/eric7_configure.py
--- a/src/eric7/eric7_configure.py	Tue Oct 18 16:05:20 2022 +0200
+++ b/src/eric7/eric7_configure.py	Tue Oct 18 16:06:21 2022 +0200
@@ -13,11 +13,9 @@
 import sys
 import os
 
-sys.path.insert(1, os.path.dirname(__file__))
-
 for arg in sys.argv[:]:
     if arg.startswith("--config="):
-        import Globals
+        from eric7 import Globals
 
         configDir = arg.replace("--config=", "")
         Globals.setConfigDir(configDir)
@@ -33,9 +31,9 @@
         )
         sys.argv.remove(arg)
 
-from Globals import AppInfo
+from eric7.Globals import AppInfo
 
-from Toolbox import Startup
+from eric7.Toolbox import Startup
 
 
 def createMainWidget(argv):
@@ -45,7 +43,7 @@
     @param argv list of commandline parameters (list of strings)
     @return reference to the main widget (QWidget)
     """
-    from Preferences.ConfigurationDialog import ConfigurationWindow
+    from eric7.Preferences.ConfigurationDialog import ConfigurationWindow
 
     w = ConfigurationWindow()
     w.show()

eric ide

mercurial