I'm writing a tool to make my jump convenient. After executing following command,
./main.py /etc
the current path is actually jump to /etc
.
If I use os.chdir
in main.py
, then the current path would pop to the original path which is no what I expected.
How can I change the real current path in python ?