diff options
author | 2012-11-05 15:15:17 +0100 | |
---|---|---|
committer | 2012-11-05 15:15:17 +0100 | |
commit | 83d8d203685cac3f5aed3872897463c7afa50810 (patch) | |
tree | d1218cb219303b77f6c8fd6209a52b5025d56dee /pyLoadCore.py | |
parent | improved header layout (diff) | |
download | pyload-83d8d203685cac3f5aed3872897463c7afa50810.tar.xz |
new Setup system, JQuery Web-If
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index a44e9a2d5..f005d9208 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -117,21 +117,24 @@ class Core(object): elif option in ("-d", "--debug"): self.doDebug = True elif option in ("-u", "--user"): - from module.setup import Setup + from module.setup.Setup import Setup self.config = ConfigParser() s = Setup(pypath, self.config) s.set_user() exit() elif option in ("-s", "--setup"): - from module.setup import Setup + from module.setup.Setup import Setup self.config = ConfigParser() s = Setup(pypath, self.config) - s.start() + if argument == "web": + s.start_web() + else: + s.start() exit() elif option == "--changedir": - from module.setup import Setup + from module.setup.Setup import Setup self.config = ConfigParser() s = Setup(pypath, self.config) @@ -282,7 +285,7 @@ class Core(object): self.version = CURRENT_VERSION if not exists("pyload.conf") and not tests: - from module.setup import Setup + from module.setup.Setup import Setup print "This is your first start, running configuration assistant now." self.config = ConfigParser() |