From 8514d670a4c1cb8182ccdfc14d99c8e746f2256d Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 16 May 2012 11:15:56 -0500 Subject: [PATCH] restored copy of logging, works today --- VERSION | 2 +- gluon/widget.py | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 76c59897..5132036b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-05-15 09:05:35) dev +Version 2.00.0 (2012-05-16 11:15:52) dev diff --git a/gluon/widget.py b/gluon/widget.py index 47fd3fef..2cab034e 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -896,11 +896,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 not os.path.exists('logging.conf') and \ + os.path.exists('logging.example.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: