I'm using iPython (Jupiter notebook) for visualizing my data. I planned storage my input data outside of the git repository liked that:
root/
|- git_repository/
|  |- research.ipynb
|- storage/
|  |- raw_data/
|  |  |- example.odx
...
I tried to import example.odx from all storages folder (raw_data, research_data...) to my code by this code below:
In  [1]: from os import listdir
         from os.path import isdir
         files = [file for file in listdir('../storage') if isdir(file)]
Out [1]: []
My output is [] mean I can not find my data. I tried some string path below however It still fails.
>>> from os import path
>>> path.join(path.dirname(__file__), '../')
NameError: name '__file__' is not defined
'./../storage', '../../storage', '../', './../', './../storage/', './..', '..'