Skip to content

Commit

Permalink
use curr python interp. in subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
albertwujj committed Nov 23, 2018
1 parent 7ff71b7 commit 5162975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinup/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def process(arg):
elif cmd in valid_utils:
# Execute the correct utility file.
runfile = osp.join(osp.abspath(osp.dirname(__file__)), 'utils', cmd +'.py')
args = ['python', runfile] + sys.argv[2:]
args = [sys.executable if sys.executable else 'python', runfile] + sys.argv[2:]
subprocess.check_call(args, env=os.environ)
else:
# Assume that the user plans to execute an algorithm. Run custom
Expand Down

0 comments on commit 5162975

Please sign in to comment.