Parse option only if TrytonServer is instanciated for issue1182

This commit is contained in:
Cédric Krier
2009-09-23 13:59:14 +02:00
parent 2559709968
commit f581e8997e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -42,8 +42,11 @@ class ConfigManager(object):
'session_timeout': 600,
'psyco': False,
'auto_reload': True,
'init': {},
'update': {},
}
def parse(self):
parser = optparse.OptionParser(version=VERSION)
parser.add_option("-c", "--config", dest="config",
+1
View File
@@ -34,6 +34,7 @@ from trytond.monitor import monitor
class TrytonServer(object):
def __init__(self):
CONFIG.parse()
if CONFIG['logfile']:
logf = CONFIG['logfile']