You can change the working directory to where your main python file exists:
import os os.chdir(/root/path/wkdir/)
import os
os.chdir(/root/path/wkdir/)