Python extension package namespace
Tu-Thach
tuthach at aix09.unm.edu
Mon Apr 16 20:09:08 EDT 2001
I have written a simple test extension module for Python and called it
testxyz. What I'd like to know is how can I make the module so that when
I call it from Python I can use
from test.testxyz import *
instead of using
from testxyz import *
It's is pretty much like putting python code into packages. I've tried
putting it under a sub directory, but it doesn't work. Anybody has any
suggestions?
Thanks,
Tu-Thach
More information about the Python-list
mailing list