Message211224
Oddly enough, this works with 3.3.4 as released:
>>> import sys, zipfile
>>> with zipfile.ZipFile('test.zip', 'w') as f:
... f.writestr('test/__init__.py', b'print("Success!")')
...
>>> sys.path[:] = ['test.zip']
>>> import test
Success!
Maybe wheel is creating archives with settings that zipimport doesn't like? (Unless you invoke load_module directly...) |
|
Date |
User |
Action |
Args |
2014-02-14 17:19:14 | steve.dower | set | recipients:
+ steve.dower, georg.brandl, gregory.p.smith, paul.moore, larry, Arfrever |
2014-02-14 17:19:14 | steve.dower | set | messageid: <1392398354.72.0.992098406583.issue20621@psf.upfronthosting.co.za> |
2014-02-14 17:19:14 | steve.dower | link | issue20621 messages |
2014-02-14 17:19:14 | steve.dower | create | |
|