bugWeeChat - Bugs: bug #18101, add ~/.weechat/python/ to...

 
 

bug #18101: add ~/.weechat/python/ to PYTHONPATH for script loading

Submitted by:  ts <timotheus25>
Submitted on:  Tue 24 Oct 2006 08:18:11 PM UTC  
 
Category: pluginsSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Emmanuel Bouthenot <kolter>
Originator Name: Open/Closed: Closed
Release: NoneIRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 24 Oct 2006 08:18:11 PM UTC, original submission:

Hi. Python scripts loaded by WeeChat need the ability to 'import' scripts from non-global locations within their home directory, especially when the imported scripts are not weechat scripts themselves (but rather libraries, data structures, whatever...)

A good place would be:
${HOME}/.weechat/python/

So, the python interpreter might do one of:

(1) before running python, something that is effective to
# export PYTHONPATH=${HOME}/.weechat/python:${PYTHONPATH}

(2) evaluate this code before load of each script:
import sys, os
sys.path.insert(0, os.environ['HOME'] + '/.weechat/python')

(3) provide an API function that effectively does (2) for the script, whenever such behavior applies for that language.

ts <timotheus25>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 29 Oct 2006 01:42:04 AM UTCkolterStatusNone=>Fixed
  Assigned toNone=>kolter
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1