I have a client.py which import moudle from other places. So i want to change work directory using command "python client.py".
I think this is what your looking for
import sys sys.path.append('/path/to/application/app/folder') #use '../' to jump back one folder import file
Code comes from here