import sys def method(foo, x): print(foo) print(sys.path)