diff --git a/tools/install.py b/tools/install.py index ead93966f09da1..6eebd2807c52c0 100755 --- a/tools/install.py +++ b/tools/install.py @@ -25,8 +25,8 @@ def abspath(*args): def load_config(): s = open('config.gypi').read() - s = re.sub(r'#.*?\n', '', s) # strip comments - s = re.sub(r'\'', '"', s) # convert quotes + s = re.sub(r'#.*\n?', '', s) # strip comments + s = s.replace("'", '"') # convert quotes return json.loads(s) def try_unlink(path):