[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #35320] sys.path is incorrect when running in a pytho

From: Jamie Kirkpatrick
Subject: [Weechat-dev] [bug #35320] sys.path is incorrect when running in a python virtualenv
Date: Tue, 17 Jan 2012 10:03:05 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7


                 Summary: sys.path is incorrect when running in a python
                 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



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

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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]