profiling script should cd to current directory because currently all relative path of profiled app are broken e.g. if I do this: ``` import sys, os PROJECT_PATH = os.path.normpath(os.path.join(sys.modules[__name__].__file__,'../')) ``` I will get wrong path and won't be able to add needed modules currently ```__file__ ```reference points to: ```python2.7/site-packages/profiling/__main__.py```
profiling script should cd to current directory because currently all relative path of profiled app are broken
e.g. if I do this:
I will get wrong path and won't be able to add needed modules
currently
__file__reference points to:python2.7/site-packages/profiling/__main__.py