Does python has a command/option which can change working directory?
Question:
I have a client.py which import moudle from other places. So i want to change work directory using command "python client.py".
Answers:
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
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