From dc1655979e86f00f6efa51f30940a56efac4d5e0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 2 Jul 2013 09:31:43 +0800 Subject: [PATCH] Only create config.gypi if it doesn't exist. Otherwise every call of bootstrap would trigger recompilation of some files. --- script/bootstrap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index a90df1a2a84e..73bae35e008a 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -70,8 +70,9 @@ def update_win32_python(): def touch_config_gypi(): config_gypi = os.path.join(SOURCE_ROOT, 'vendor', 'node', 'config.gypi') - with open(config_gypi, 'w+') as f: - f.truncate(0) + if not os.path.exists(config_gypi): + with open(config_gypi, 'w+') as f: + f.truncate(0) def update_atom_shell():