Skip to content

Commit

Permalink
Use sys.executbale to summon Python
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Nov 26, 2024
1 parent f8e889f commit d03c3fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_entrypoint/test_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import shutil
import subprocess
import sys
import time
import unittest

Expand Down Expand Up @@ -61,7 +62,7 @@ def test_entrypoint(self):
input_stream = json.dumps(input_data)

main_file = self._file_name("main.py", self.TWO_DIRS_UP)
args = ["python", main_file]
args = [sys.executable, main_file]
result = subprocess.run(
args,
env=os.environ,
Expand Down

0 comments on commit d03c3fa

Please sign in to comment.