Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue executing postactivate script when using a virtualenv #8

Open
Sabbasth opened this issue Feb 12, 2016 · 1 comment
Open

Issue executing postactivate script when using a virtualenv #8

Sabbasth opened this issue Feb 12, 2016 · 1 comment

Comments

@Sabbasth
Copy link

postactivate seems to not be loaded.

To test it I added a path to $PYTHONPATH:

export OLD_PYTHONPATH="$PYTHONPATH"

if [ -z $PYTHONPATH ]; then
    export PYTHONPATH=/home/bsemene/dev/logging_handlers
else
    export PYTHONPATH=$PYTHONPATH:/home/bsemene/dev/logging_handlers
fi

On the console I execute the following in my virtualenv:

$python -c "import sys ; import os ; print os.getenv('PYTHONPATH') in sys.path"
True

And on sublime (after activating the virtualenv):
print '/home/bsemene/dev/logging_handlers' in sys.path returns False

@flux627
Copy link

flux627 commented Nov 26, 2016

Did you ever find a solution to this problem?

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

No branches or pull requests

2 participants