Skip to content

Commit

Permalink
check if sys.executable is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
albertwujj committed Nov 23, 2018
1 parent f27f10d commit 7ff71b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinup/utils/run_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def thunk_plus():
encoded_thunk = base64.b64encode(zlib.compress(pickled_thunk)).decode('utf-8')

entrypoint = osp.join(osp.abspath(osp.dirname(__file__)),'run_entrypoint.py')
cmd = [sys.executable, entrypoint, encoded_thunk]
cmd = [sys.executable if sys.executable else 'python', entrypoint, encoded_thunk]
try:
subprocess.check_call(cmd, env=os.environ)
except CalledProcessError:
Expand Down

0 comments on commit 7ff71b7

Please sign in to comment.