less verbose config parsing
authorTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 13:44:42 +0000 (16:44 +0300)
committerTimo Savola <tsavola@movial.fi>
Sun, 6 Apr 2008 13:44:42 +0000 (16:44 +0300)
matrix/matrix.py

index a4bf3c6..11bc55c 100644 (file)
@@ -165,7 +165,9 @@ def parse_config(path):
                path = os.path.join(config.top_dir, path)
 
        if os.path.exists(path):
-               print 'Reading', path
+               if config.debug:
+                       print 'Reading', path
+
                execfile(path, config.__dict__, config.__dict__)
 
 def execute(args):