src/eric7/eric7_ide.py

branch
eric7
changeset 9399
fcf9b48d8a0e
parent 9377
b9c8dc3b7da1
child 9413
80c06d472826
--- a/src/eric7/eric7_ide.py	Wed Oct 12 17:37:24 2022 +0200
+++ b/src/eric7/eric7_ide.py	Wed Oct 12 17:37:54 2022 +0200
@@ -34,7 +34,8 @@
 ]
 restartArgs = [arg for arg in sys.argv[1:] if arg.split("=", 1)[0] in restartArgsList]
 
-sys.path.insert(1, os.path.dirname(__file__))
+if os.path.dirname(__file__) not in sys.path:
+    sys.path.insert(1, os.path.dirname(__file__))
 
 try:
     from PyQt6.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication

eric ide

mercurial