Create default logging.conf if it doesn't exist, thanks Marc

This commit is contained in:
Massimo DiPierro
2012-05-11 17:41:25 -05:00
parent d788830df6
commit 327ea4e019
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-11 14:51:42) dev
Version 2.00.0 (2012-05-11 17:41:20) dev
+6
View File
@@ -895,6 +895,12 @@ def start(cron=True):
if hasattr(options,key):
setattr(options,key,getattr(options2,key))
if not os.path.exists('logging.conf'):
import shutil
sys.stdout.write("Copying logging.conf.example to logging.conf ... ")
shutil.copyfile('logging.example.conf', 'logging.conf')
sys.stdout.write("OK\n")
# ## if -T run doctests (no cron)
if hasattr(options,'test') and options.test:
test(options.test, verbose=options.verbose)