#Hendrik Schneider # #I thinks it's a bug, but I'm not sure :) from os import chdir, getcwd def foo(path=getcwd()): print 'path: ', path print 'getcwd: ', getcwd() foo() chdir('Directory') #Please change foo()