]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
filename for warning
authorcvw <cvw>
Tue, 30 Jul 2013 14:29:21 +0000 (14:29 +0000)
committercvw <cvw>
Tue, 30 Jul 2013 14:29:21 +0000 (14:29 +0000)
bin/parseConfigFile.py

index bf2dbb9e08bbf724dc0b0db2b50f3f040a4fcdb0..65219d3734569942dc18138a30b1cb01df364bac 100644 (file)
@@ -138,10 +138,10 @@ def parseConfigFile(filename, reserved = []):
     logConfigParser.error("No section found in file: %s"%(filename))
     return []
 
-  return _processConfigFile(config, reserved)
+  return _processConfigFile(config, reserved, filename)
 #
 
-def _processConfigFile(config, reserved = []):
+def _processConfigFile(config, reserved = [], filename="UNKNOWN FILENAME"):
   # :TODO: may detect duplicated variables in the same section (raise a warning)
   #        or even duplicate sections