Using sys.executable

Sanghyeon Seo sanxiyn at gmail.com
Mon Sep 18 23:59:31 EDT 2006


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

-- 
Seo Sanghyeon



More information about the Python-list mailing list