summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2010-03-11 14:57:29 +0100
committerGravatar spoob <spoob@gmx.de> 2010-03-11 14:57:29 +0100
commita7e2bd25a3fbdb35d0f75607f2fee35943d0ad20 (patch)
tree83d29c2df7f06e772e3fa46b8c49dd4b12beeb1a /pyLoadCore.py
parentAdded tag v0.3.2 for changeset 3ea104a0eccc (diff)
downloadpyload-a7e2bd25a3fbdb35d0f75607f2fee35943d0ad20.tar.xz
Fixed Hotfile
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--[-rwxr-xr-x]pyLoadCore.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index a9283872f..bcc88814b 100755..100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -67,11 +67,13 @@ from module.web.ServerThread import WebServer
class Core(object):
""" pyLoad Core """
+
def __init__(self):
+ self.doDebug = False
self.arg_links = []
if len(argv) > 1:
try:
- options, arguments = getopt(argv[1:], 'vcl:')
+ options, arguments = getopt(argv[1:], 'vcl:d')
for option, argument in options:
if option == "-v":
print "pyLoad", CURRENT_VERSION
@@ -82,6 +84,8 @@ class Core(object):
elif option == "-l":
self.arg_links.append(argument)
print "Added %s" % argument
+ elif option == "-d":
+ self.doDebug = True
except:
print 'Unknown Argument(s) "%s"' % " ".join(argv[1:])
@@ -105,6 +109,8 @@ class Core(object):
self.xmlconfig = XMLConfigParser(self.make_path("module", "config", "core.xml"))
self.config = self.xmlconfig.getConfig()
+ if self.doDebug == True:
+ self.config['general']['debug_mode'] = True
self.parser_plugins = XMLConfigParser(self.make_path("module", "config", "plugin.xml"))
#~ self.config_plugins = self.parser_plugins.getConfig()