Hi,
Is there a reason why /usr/lib/python2.x/site-packages/TMDA/pythonlib
isn't prepended to sys.path in TMDA/Utils.py ?
I had a problem with the line 'from email import Header' in the function
decode_header(str).
Of course the prepending of sys.path must be done before the first
import of the email package, ie. before the line 'import email.Utils'.
For the moment I just added the following at the beginning of
TMDA/Utils.py:
import cPickle
import os
import sys
try:
from email import Header
except ImportError:
# Prepend /usr/lib/python2.x/site-packages/TMDA/pythonlib
sys.path.insert(0, os.path.join(sys.prefix, 'lib',
'python'+sys.version[:3], 'site-packages', 'TMDA', 'pythonlib'))
import email.Utils
Waiting for a reason not to commit this, or a go-ahead.
David
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers