Fixed issue in background service if module is already installed in sys.path.

Sat, 26 Apr 2014 22:50:33 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 26 Apr 2014 22:50:33 +0200
changeset 3540
b83fe0651bfd
parent 3539
0c2dc1446ebf
child 3541
5c35f4f0ecf1

Fixed issue in background service if module is already installed in sys.path.

Utilities/BackgroundClient.py file | annotate | diff | comparison | revisions
--- a/Utilities/BackgroundClient.py	Sat Apr 26 10:36:09 2014 +0200
+++ b/Utilities/BackgroundClient.py	Sat Apr 26 22:50:33 2014 +0200
@@ -50,7 +50,7 @@
         @param module name to import (str)
         @return text result of the import action (str)
         """
-        sys.path.append(path)
+        sys.path.insert(1, path)
         try:
             importedModule = __import__(module, globals(), locals(), [], 0)
             self.services[fn] = importedModule.initService()

eric ide

mercurial