From 944701a4c2ad0cb2cefd88c8ab895d025591cfcc Mon Sep 17 00:00:00 2001 From: Avinash Raj Date: Wed, 10 Feb 2016 15:02:31 +0530 Subject: [PATCH] Update install.py --- tools/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):