summaryrefslogtreecommitdiffstats
path: root/module/InitHomeDir.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-15 19:33:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-15 19:33:43 +0100
commitd75c8d8793dde827977828ee1b6a9dc3256aa439 (patch)
tree16cb320a1b28794355b9d56f4df535f432b11618 /module/InitHomeDir.py
parentimproved handling of content-disposition (diff)
downloadpyload-d75c8d8793dde827977828ee1b6a9dc3256aa439.tar.xz
config directory fix
Diffstat (limited to 'module/InitHomeDir.py')
-rw-r--r--module/InitHomeDir.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/InitHomeDir.py b/module/InitHomeDir.py
index ff1e1463b..14207847e 100644
--- a/module/InitHomeDir.py
+++ b/module/InitHomeDir.py
@@ -52,7 +52,7 @@ else:
__builtin__.homedir = homedir
-args = " ".join(argv[1:])
+args = " ".join(argv)
# dirty method to set configdir from commandline arguments
if "--configdir=" in args:
@@ -63,7 +63,8 @@ if "--configdir=" in args:
configdir = args[pos + 12:].strip()
else:
configdir = args[pos + 12:end].strip()
-elif "nosetests" in args or "nosetests2" in args:
+elif "nosetests" in args:
+ print "Running in test mode"
configdir = join(pypath, "tests", "config")
elif path.exists(path.join(pypath, "module", "config", "configdir")):