Package: rss2email
Version: 2.60-3

rss2email.py loads the values in config.py by doing
  sys.path.append(".")
and then 
  from config import *

However, this only works if there is not already a config.py in the
sys.path. In my case, the one
at /var/lib/python-support/python2.4/config.py "get's in the way"
of ./config.py (i.e. precedes it in sys.path), and thus gets imported
instead.

I'm running etch (arch: AMD64).

A fix to this problem would be to prepend "." to sys.path, not append
it. Suggested patch:

--- /usr/share/rss2email/rss2email.py   2006-12-13 21:34:03.000000000
+0200
+++ dev/rss2email/rss2email.py  2007-06-14 13:02:25.000000000 +0200
@@ -205,7 +205,7 @@

 # Read options from config file if present.
 import sys
-sys.path.append(".")
+sys.path.insert(0,".")
 try:
        from config import *
 except:



-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to