# option a import os print(os.environ['PYTHONPATH'].split(os.pathsep)) # option b import sys print(sys.path)