Salome HOME
Fix bug in DISTENE licence key (do not trim double colons ::)
authoraguerre <aguerre>
Fri, 8 Nov 2013 17:09:15 +0000 (17:09 +0000)
committeraguerre <aguerre>
Fri, 8 Nov 2013 17:09:15 +0000 (17:09 +0000)
bin/parseConfigFile.py

index 8dd21189f503699cf8dfeb19684368826df8c46d..41c294334191cce7b4f00df73c986e816a5e7e5c 100644 (file)
@@ -167,7 +167,8 @@ def __processConfigFile(config, reserved = [], filename="UNKNOWN FILENAME"):
         pattern = re.compile('\${ ( [^}]* ) }', re.VERBOSE) # string enclosed in ${ and }
         expandedVal = pattern.sub(r'', expandedVal) # remove matching patterns
         # Trim colons
-        expandedVal = _trimColons(expandedVal)
+        if not "DLIM8VAR" in key: # special case: DISTENE licence key can contain double clons (::)
+          expandedVal = _trimColons(expandedVal)
 
         if key in reservedKeys:
           shortKey = key[len(ADD_TO_PREFIX):]