|
From: Samuele P. <pe...@in...> - 2001-07-17 23:41:41
|
Hi. A silly question:
if foopkg is a package imported from a jar should:
# as with the patch
fookpkg.__path__ = [SyspathArchive('foo.jar')]
or
foopkg.__path__ = [SyspathArchiveXXX('foo.jar/foopkg')]
or
# vaguely inspired by jar: urls
foopkg.__path__ = [SyspathArchiveXXX('foo.jar!/foopkg')]
?
It's a matter of uniformity but maybe that's not that important.
Samuele. More later ...
PS: I write this before I forget about it:
in general (I mean across the various jvms), if ins is a stream
obtained from a ZipFile
ins.read(buf,len,av) != av
I have been already bitten a few times by that. Maybe that will improve
in the future. We should check if the old class/source reading code takes care
of that.
|