File: pyedit-products/unzipped/docetc/examples/RunCode-examples/envtest.py

import os
print(os.popen('which python').read())     # Unix only (error message on Win)
print(os.popen('which python3').read())    # Unix only (ditto)
print('----')
print(os.environ['PATH'])
print('done')



[Home page] Books Code Blog Python Author Train Find ©M.Lutz