Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Jan 11, 2024
1 parent e8aa04d commit a5c46cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ class BuildCFFIForSharedLib(_build_ext):
def build_extensions(self):
build_script = os.path.join('_cffi_build', 'build_shared.py')
c_file = self.extensions[0].sources[0]
python_exe = shutil.which('python', path=os.environ['PATH'])
subprocess.run([python_exe, build_script, c_file, '0'], shell=False, check=True) # noqa S603
subprocess.run([sys.executable, build_script, c_file, '0'], shell=False, check=True) # noqa S603
super().build_extensions()


Expand Down

0 comments on commit a5c46cb

Please sign in to comment.