File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 7777 sys .exit (1 )
7878subprocess_exe = "./../linux/binaries_%s/subprocess" % (BITS )
7979if os .path .exists ("./subprocess" ):
80- shutil .copyfile ("./subprocess" , subprocess_exe )
81- st = os .stat (subprocess_exe )
82- os .chmod (subprocess_exe , st .st_mode | stat .S_IEXEC )
80+ # .copy() will also copy Permission bits
81+ shutil .copy ("./subprocess" , subprocess_exe )
8382
8483# os.chdir("./../v8function_handler/")
8584# ret = subprocess.call("make -f Makefile", shell=True)
134133 if os .path .exists (pyxfile ):
135134 os .remove (pyxfile )
136135
137- if ret != 0 :
136+ if ret != 0 :
138137 sys .exit ("ERROR" )
139138
140139if DEBUG :
Original file line number Diff line number Diff line change 9595 sys .exit (1 )
9696subprocess_exe = "./../mac/binaries_%s/subprocess" % (BITS )
9797if os .path .exists ("./subprocess" ):
98- shutil .copyfile ("./subprocess" , subprocess_exe )
99- st = os .stat (subprocess_exe )
100- os .chmod (subprocess_exe , st .st_mode | stat .S_IEXEC )
98+ # .copy() will also copy Permission bits
99+ shutil .copy ("./subprocess" , subprocess_exe )
101100
102101# os.chdir("./../v8function_handler/")
103102# ret = subprocess.call("make -f Makefile", shell=True)
You can’t perform that action at this time.
0 commit comments