examples/sys/mysys.py
from __future__ import print_function
import sys

print(sys.argv)
    # the array of the values
    # on the command line sys.argv[0] is the name of the Python script


print(sys.executable)
    # path to the python interpreter


print(sys.path)
    # list of file-system path strings for searching for modules
    # hard-coded at compile time but can be changed via the PYTHONPATH
    # environment variable or during execution by modifying sys.path

['examples/sys/mysys.py']
/usr/bin/python
['/Users/gabor/work/training/python/examples/sys',
 '/Users/gabor/python/lib/python2.7/site-packages/crypto-1.1.0-py2.7.egg',
 ...,
 '/Users/gabor/python',
 '/Users/gabor/python/lib/python2.7/site-packages',
 ...]