Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

profiler doesn't cd to current directory #40

Open
oleksii-sl opened this issue Dec 28, 2016 · 0 comments
Open

profiler doesn't cd to current directory #40

oleksii-sl opened this issue Dec 28, 2016 · 0 comments

Comments

@oleksii-sl
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant