URL:
<http://savannah.nongnu.org/bugs/?35320>
Summary: sys.path is incorrect when running in a python
virtualenv
Project: WeeChat
Submitted by: jkp
Submitted on: Tue 17 Jan 2012 10:03:04 AM GMT
Category: script API plugins
Severity: 3 - Normal
Item Group: other
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
IRC nick: jkp
_______________________________________________________
Details:
The sys.path variable in a wee-chat python plugin is incorrect: this is
because you use "python_path = PySys_GetObject ("path");" to get the original
value but this will not take into account the extra directories added by
virtualenv.
It would probably be better to use the output from "python -c 'import sys;
print sys.path'" to determine the original value because that will take into
account virtualenv environmental settings.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?35320>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev