Add an .egg to the python path in osx -


i'm working pycharm , set remote debugging pydev. ready except when want debug tells me message in pycharm console:

warning: wrong debugger version. use pycharm-debugger.egg pycharm installation folder. 

so i'm working in virtualenv python logged on the virtualenv , set python path .egg (i copied .egg documents make easier).

pythonpath="$pythonpath:./documents/pycharm-debug.egg" 

or

pythonpath="./documents/pycharm-debug.egg:$pythonpath" 

this didn't work, tried other method append sys.path location of .egg didn't work either.

what doing wrong?

thanks in advance

edit: forgot mention i'm on osx

edit: ok sorry that, misunderstood.

so need add path environment variable, sorry. using bash script that, this:

pythonenv.sh

#!/bin/bash  export pythonpath="$pythonpath:./documents/pycharm-debug.egg" 

then call script this:

source pythonenv.sh

at point got env variable in shell, remember after close shell lose env variable.

so don't know if osx has initialization script in user folder, should put line in .rc file:

export pythonpath="$pythonpath:./documents/pycharm-debug.egg" 

so everytime open shell have automatically defined pythonpath variable, guidance here:

http://scipher.wordpress.com/2010/05/10/setting-your-pythonpath-environment-variable-linuxunixosx/


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -