diff Resources/GenerateErrorCodes.py @ 1582:bd1889029cbb

encoding of exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:39:38 +0200
parents bf502300c52e
children 9a3e03d6a4d5
line wrap: on
line diff
--- a/Resources/GenerateErrorCodes.py	Tue Aug 25 16:18:37 2015 +0200
+++ b/Resources/GenerateErrorCodes.py	Tue Aug 25 17:39:38 2015 +0200
@@ -43,7 +43,7 @@
 ##
 
 with open(os.path.join(BASE, 'Resources', 'ErrorCodes.json'), 'r') as f:
-    ERRORS = json.loads(f.read())
+    ERRORS = json.loads(re.sub('/\*.*?\*/', '', f.read()))
 
 with open(os.path.join(BASE, 'Core', 'Enumerations.h'), 'r') as f:
     a = f.read()