imports don't work after changing working directory code example Example: python cd to directory import os os.chdir(path)