views:

191

answers:

2

Thanks for any response

+4  A: 

I'm not entirely sure what you mean, but perhaps you want to change the working directory?

os.chdir(path)¶
    Change the current working directory to path. Availability: Unix, Windows.

From: http://docs.python.org/library/os.html

You can't do it separately for input and output though.

Mark Byers
+1  A: 

Perhaps this is what you are looking for:

import os
os.chdir(default_path)
unutbu