Importable python_lib.zip assets

Lots of plumbing to allow an asset named python_lib.zip to be imported
by jailed Python code.

This function can find the "python_lib.zip" asset, and is passed down
through ModuleSystem and LoncapaSystem so that capa problems have access
to the zipfile.
This commit is contained in:
Ned Batchelder
2014-09-08 12:32:23 -04:00
parent 43ce6421cf
commit 616bbbab4e
18 changed files with 208 additions and 14 deletions

View File

@@ -0,0 +1,3 @@
Use this directory to make the python_lib.zip file above:
$ zip -r python_lib.zip python_lib_zip/*

View File

@@ -0,0 +1,5 @@
def seventeen():
return 17
def fortytwo(x):
return 42+x

View File

@@ -0,0 +1 @@
HELLO = "world"