On Thu, 8 Dec 2011, Bill Janssen wrote:
Andi Vajda <va...@apache.org> wrote:
from _jcc import initVM
I believe that in the statement "from X import Y", X and Y are
essentially strings, not runtime-evaluated values. So what would
work would be
from jcc._jcc import initVM
or
initVM = _jcc.initVM
Thanks for having checked it out.
I guess we're back to the original with just the _jcc import ahead of the
block:
...
from jcc import _jcc
# used when jcc is invoked with -m from python 2.5
if __name__ == '__main__':
import jcc.__main__
else:
from _jcc import initVM
...
Andi..