openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #01088
[Merge] lp:~raoul-snyman/openlp/fixes into lp:openlp
Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/fixes into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
--
https://code.launchpad.net/~raoul-snyman/openlp/fixes/+merge/20488
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp.pyw'
--- openlp.pyw 2010-02-21 06:32:43 +0000
+++ openlp.pyw 2010-03-02 21:00:30 +0000
@@ -158,7 +158,10 @@
parser.add_option("-s", "--style", dest="style",
help="Set the Qt4 style (passed directly to Qt4).")
# Set up logging
- filename = os.path.join(get_config_directory(), u'openlp.log')
+ log_path = get_config_directory()
+ if not os.path.exists(log_path):
+ os.makedirs(log_path)
+ filename = os.path.join(log_path, u'openlp.log')
logfile = FileHandler(filename, u'w')
logfile.setFormatter(logging.Formatter(
u'%(asctime)s %(name)-15s %(levelname)-8s %(message)s'))
Follow ups