470,612 Members | 2,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

import a module from an archive ?

hi all,

i'd like to know if it's possible to import a module from an archive
(zip, rar, tar, jar, ...)
I've tried using different formats but it still doesn't work .....

i make:
sys.path.append('d:/myModules.zip')
import aModuleFromTheArchive


is there a way to do that ?
the problem is that i've embed a python interpreter in our java app and
our scripts need some standard modules from python and jython but the 2
'Lib' directories of python and jython are a bit heavy : 8Mb ....

thx,
vince

Jul 18 '05 #1
0 1149

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Remy Cool | last post: by
reply views Thread by Stian Søiland | last post: by
reply views Thread by John Roth | last post: by
43 posts views Thread by Dan Perl | last post: by
2 posts views Thread by Torsten Mohr | last post: by
1 post views Thread by fts2012 | last post: by
reply views Thread by abarun22 | last post: by
reply views Thread by Gabriel Genellina | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.