David Guerizec <[EMAIL PROTECTED]> writes:
>> Because I'm doing this from the bin/tmda-* programs. So, by the time
>> Utils is imported, pythonlib is already on sys.path.
>
> ok, I see it's in bin/paths.py
Yes, but this is only used if you are running from a TMDA source
tree. Take a look at the top of tmda-rfilter:
try:
import paths
except ImportError:
# Prepend /usr/lib/python2.x/site-packages/TMDA/pythonlib
sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
'site-packages', 'TMDA', 'pythonlib')
sys.path.insert(0, sitedir)
So if you are running an RPM, import paths will fail, and the above
code under ImportError will be run instead.
I'm unable to figure out why this isn't working for you. It seems to
work for others using an RPM install.
> I'm running Mandrake 9.0, using my own tmda-0.65 rpm (based on the
> 0.61 mdk rpm).
Why not just build an RPM from the TMDA tarball as described on
http://tmda.net/install.html ?
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers