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