From 24b6d28baf559e151fc96ce2c15d17dfd78da479 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Jun 2013 22:55:07 +0200 Subject: fixed start scripts --- pyload/InitHomeDir.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyload/InitHomeDir.py') diff --git a/pyload/InitHomeDir.py b/pyload/InitHomeDir.py index 3554497d3..c255913de 100644 --- a/pyload/InitHomeDir.py +++ b/pyload/InitHomeDir.py @@ -31,7 +31,10 @@ __builtin__.pypath = path.abspath(path.join(__file__, "..", "..")) # Before changing the cwd, the abspath of the module must be manifested if 'pyload' in sys.modules: - sys.modules['pyload'].__path__.append(path.abspath(sys.modules['pyload'].__path__[0])) + rel_pyload = sys.modules['pyload'].__path__[0] + abs_pyload = path.abspath(rel_pyload) + if abs_pyload != rel_pyload: + sys.modules['pyload'].__path__.insert(0, abs_pyload) sys.path.append(join(pypath, "pyload", "lib")) -- cgit v1.2.3