this is a python related question I would like to insert a line of code so that when the code is run on python, it always starts at at specific directory. I know you can move to parent directory or to a directory in the current path, but is their a way to move to a specific directory regardless of my current directory?
Asked
Active
Viewed 75 times
0
-
Look at `os.chdir()` and use an absolute path (e.g. start with `/` for unix or `
:` for windows) – AChampion Apr 12 '16 at 05:11 -
you can use `os.chdir(path)` this . – Apr 12 '16 at 05:12
-
What [this](http://stackoverflow.com/questions/1810743/how-to-set-the-current-working-directory-in-python) way? (Try search first!) – honzakuzel1989 Apr 12 '16 at 05:15
-
Thanks the magic was in entering the absolute path rather than something like (/Tensorflow) – HongJoon Kim Apr 13 '16 at 09:37