python check location code example Example: sys get current pythonpath import sys print(sys.version) print(sys.path)