PDA

View Full Version : how set PYTHONPATH ?



zeta
2013-05-28, 15:46
hI
I have issue with setting PYTHONPATH in Kali...where I can find it for editing?'
if I cat .bashrc....nothing

thanks in advance

zeta
2013-05-29, 11:54
ok, I solved as follows:

from BASH type: export PYTHONPATH=/path/to/new/folder:/another/path/...../ #each path must be separated by a colon

this isn't a permanent change in sys.path, because when you log out, your environment is reset, so any variables you may have set are lost...

then You must edit your ".bashrc" file adding previus "path string" to it ;
now your sys.path remains updated also when reboot your machine.

thorin
2013-06-03, 12:40
http://docs.python.org/2/using/cmdline.html

http://genepath.med.harvard.edu/mw/Bash:HOW_TO:_Set_an_environment_variable_in_the_ba sh_shell