Issue
I am setting a project path to some env variable like PROJECT_HOME by us using os.environ like this:
os.environ['PROJECT_HOME'] = os.getcwd()
so I can use %cd $PROJECT_HOME/abc/xyz
in later cell
However, the system return this:
[Errno 2] No such file or directory: '${PROJECT_HOME}/abc/xyz'
Is there a way to use env variable in %cd?
Solution
This works for me: %cd {os.environ['PROJECT_HOME']}
Answered By - Daniel Schneider
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.