Message534

Author bckfnn
Recipients
Date 2001-12-20.16:40:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
[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 =)
History
Date User Action Args
2008-02-20 17:16:59adminlinkissue495458 messages
2008-02-20 17:16:59admincreate