Using sys.executable

Sanghyeon Seo sanxiyn at gmail.com
Tue Sep 19 00:00:16 EDT 2006


Oops, sent to the wrong address!

2006/9/19, Sanghyeon Seo <sanxiyn at gmail.com>:
> Following Elliot's advice, I changed my scripts to use sys.executable
> instead of hardcoding the path. Also in SVN.
>
> # in run_tests.py
> import os, sys
> os.putenv('PYTHON', sys.executable)
>
> # in shell scripts
> $PYTHON alltests.py



More information about the Python-list mailing list