profiling icon indicating copy to clipboard operation
profiling copied to clipboard

profiler doesn't cd to current directory

Open oleksii-sl opened this issue 8 years ago • 0 comments

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

oleksii-sl avatar Dec 28 '16 16:12 oleksii-sl