By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,532 Members | 1,374 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,532 IT Pros & Developers. It's quick & easy.

import a module from an archive ?

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.