Commit f867b0df authored by Marco Mariani's avatar Marco Mariani

expand ~ in logfile parameter

parent 218037ea
......@@ -212,7 +212,7 @@ def main(*args):
global klass_name
klass_name = 'dream.simulation.GUI.%s' % arguments.gui_class
if arguments.logfile:
file_handler = logging.FileHandler(arguments.logfile)
file_handler = logging.FileHandler(os.path.expanduser(arguments.logfile))
file_handler.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment