@@ -24,16 +24,11 @@ def run_gyp(args):
24
24
# GYP bug.
25
25
# On msvs it will crash if it gets an absolute path.
26
26
# On Mac/make it will crash if it doesn't get an absolute path.
27
- if sys .platform == 'win32' :
28
- args .append (os .path .join (node_root , 'node.gyp' ))
29
- common_fn = os .path .join (node_root , 'common.gypi' )
30
- options_fn = os .path .join (node_root , 'config.gypi' )
31
- options_fips_fn = os .path .join (node_root , 'config_fips.gypi' )
32
- else :
33
- args .append (os .path .join (os .path .abspath (node_root ), 'node.gyp' ))
34
- common_fn = os .path .join (os .path .abspath (node_root ), 'common.gypi' )
35
- options_fn = os .path .join (os .path .abspath (node_root ), 'config.gypi' )
36
- options_fips_fn = os .path .join (os .path .abspath (node_root ), 'config_fips.gypi' )
27
+ a_path = node_root if sys .platform == 'win32' else os .path .abspath (node_root )
28
+ args .append (os .path .join (a_path , 'node.gyp' ))
29
+ common_fn = os .path .join (a_path , 'common.gypi' )
30
+ options_fn = os .path .join (a_path , 'config.gypi' )
31
+ options_fips_fn = os .path .join (a_path , 'config_fips.gypi' )
37
32
38
33
if os .path .exists (common_fn ):
39
34
args .extend (['-I' , common_fn ])
0 commit comments