diff web/config.py @ 393:afce71f829d6

- log more details - less silly way to load localconfig
author Matt Johnston <matt@ucc.asn.au>
date Thu, 12 Jul 2012 23:44:20 +0800
parents c0ffbfaac1c7
children 51d889ad39a3
line wrap: on
line diff
--- a/web/config.py	Wed Jul 11 23:43:36 2012 +0800
+++ b/web/config.py	Thu Jul 12 23:44:20 2012 +0800
@@ -35,10 +35,6 @@
 GRAPH_LEFT_MARGIN = 63
 
 try:
-    import localconfig
-    g = globals()
-    for k in dir(localconfig):
-        if k in g:
-            g[k] = localconfig.__dict__[k]
+    from localconfig import *
 except ImportError:
     pass