answered 11 years ago
This is what I do
import os os.chdir("/path/to/directory") # /path/to/directory is where my python file is kept from mypythonfile import *