Python Change CWD para diretório de scripts
os.chdir(os.path.dirname(os.path.abspath(__file__)))
Comfortable Cockroach
os.chdir(os.path.dirname(os.path.abspath(__file__)))
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)