Message534
[Matt_Conway]
I had a problem with multi level import from a jar
file in my sys.path. basically, my simple test jar
looks as follows, with the init files being empty,
and the py files having a simple variable def:
jlib.jar:
Lib/
Lib/aaa/
Lib/aaa/__init__.py
Lib/aaa/bbb/
Lib/aaa/bbb/__init__.py
Lib/aaa/bbb/ccc/
Lib/aaa/bbb/ccc/__init__.py
Lib/aaa/bbb/ccc/yyy.py
Lib/aaa/bbb/xxx.py
import aaa works fine
import aaa.bbb (or more levels) doesn't
I traced the problem down to the following line from
the method "loadFromZipFile" on line 302 in
org/python/core/imp.java
SyspathArchive subArchive =
zipArchive.makeSubfolder(modName);
Which should probably be
SyspathArchive subArchive =
zipArchive.makeSubfolder(name);
Or at least, when I change it to that, all levels of
import work for me =)
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:59 | admin | link | issue495458 messages |
2008-02-20 17:16:59 | admin | create | |
|