From 70e1f359f63300702caeef09ebd7960704ed40a7 Mon Sep 17 00:00:00 2001 From: cvw Date: Tue, 30 Jul 2013 14:29:21 +0000 Subject: [PATCH] filename for warning --- bin/parseConfigFile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/parseConfigFile.py b/bin/parseConfigFile.py index bf2dbb9e0..65219d373 100644 --- a/bin/parseConfigFile.py +++ b/bin/parseConfigFile.py @@ -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 -- 2.39.2