From: Cédric Aguerre Date: Fri, 11 Apr 2014 11:29:58 +0000 (+0200) Subject: trim quoted paths X-Git-Tag: V7_4_0b1~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d1c81fccdc2de03514fdf58478a43095ea972e6;p=modules%2Fkernel.git trim quoted paths --- diff --git a/bin/parseConfigFile.py b/bin/parseConfigFile.py index d8722a6cf..7590fbaf3 100644 --- a/bin/parseConfigFile.py +++ b/bin/parseConfigFile.py @@ -103,6 +103,12 @@ class MultiOptSafeConfigParser(ConfigParser.SafeConfigParser): if pos != -1 and optval[pos-1].isspace(): optval = optval[:pos] optval = optval.strip() + # ADD THESE LINES + splittedComments = optval.split('#') + optval = splittedComments[0].strip().strip("'").strip('"') + #if len(splittedComments) > 1: + # optval += " #" + " ".join(splittedComments[1:]) + # END OF ADD # allow empty values if optval == '""': optval = ''