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

profiler doesn't cd to current directory #40

@oleksii-sl

Description

@oleksii-sl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions