Parse option only if TrytonServer is instanciated for issue1182
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -34,6 +34,7 @@ from trytond.monitor import monitor
|
||||
class TrytonServer(object):
|
||||
|
||||
def __init__(self):
|
||||
CONFIG.parse()
|
||||
|
||||
if CONFIG['logfile']:
|
||||
logf = CONFIG['logfile']
|
||||
|
||||
Reference in New Issue
Block a user