mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
changed zip filename
This commit is contained in:
@@ -12,7 +12,7 @@ if(len(sys.argv)>1 and sys.argv[1]=="--clean"):
|
|||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
print "zipping stdlib"
|
print "zipping stdlib"
|
||||||
fid=zipfile.ZipFile("./build/stdlib.zip","w",zipfile.ZIP_DEFLATED)
|
fid=zipfile.ZipFile("./build/tptPython.zip","w",zipfile.ZIP_DEFLATED)
|
||||||
|
|
||||||
#ZipFile.write(filename)
|
#ZipFile.write(filename)
|
||||||
files=os.walk("./src/python/stdlib")
|
files=os.walk("./src/python/stdlib")
|
||||||
|
BIN
build/powder
BIN
build/powder
Binary file not shown.
@@ -2078,7 +2078,7 @@ int main(int argc, char *argv[])
|
|||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
Py_InitModule("tpt", EmbMethods);
|
Py_InitModule("tpt", EmbMethods);
|
||||||
//change the path to find all the correct modules
|
//change the path to find all the correct modules
|
||||||
PyRun_SimpleString("import sys\nsys.path.append('./stdlib.zip')\nsys.path.append('.')");
|
PyRun_SimpleString("import sys\nsys.path.append('./tptPython.zip')\nsys.path.append('.')");
|
||||||
PyRun_SimpleString("print 'python present.'");
|
PyRun_SimpleString("print 'python present.'");
|
||||||
//load the console module and whatnot
|
//load the console module and whatnot
|
||||||
#ifdef PYEXT
|
#ifdef PYEXT
|
||||||
|
Reference in New Issue
Block a user