How to set current working directory?

   1897   1   1
User Avatar
Member
680 posts
Joined: Nov. 2013
Offline
Hi,
The abspath() vex function converts the path relative to the working directory to an absolute path.
In my test, the working directory is always $HOME folder, not $HIP.

Any way change it?
User Avatar
Member
542 posts
Joined: Nov. 2016
Offline
You can change it in Python using os.chdir(). Alternatively you could replace() the $HIP part of your path by $HOME, and then run abspath().
  • Quick Links