From: <th...@us...> - 2003-11-04 08:30:27
|
Update of /cvsroot/py2exe/py2exe/sandbox/source In directory sc8-pr-cvs1:/tmp/cvs-serv15608 Modified Files: start.c Log Message: We can now run with *only* the shared zipfile on sys.path. Index: start.c =================================================================== RCS file: /cvsroot/py2exe/py2exe/sandbox/source/start.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** start.c 4 Nov 2003 08:18:24 -0000 1.10 --- start.c 4 Nov 2003 08:30:24 -0000 1.11 *************** *** 130,135 **** * And, of course, the zipfile itself. */ ! sprintf(buffer, "PYTHONPATH=%s;%s\\%s", ! libdirname, libdirname, pZipBaseName); _putenv (buffer); _putenv ("PYTHONSTARTUP="); --- 130,135 ---- * And, of course, the zipfile itself. */ ! sprintf(buffer, "PYTHONPATH=%%s\\%s", ! libdirname, pZipBaseName); _putenv (buffer); _putenv ("PYTHONSTARTUP="); *************** *** 203,213 **** { int rc; - /* It would be nice to run only with the single zipfile entry on sys.path, - but it seems for inproc com servers the module's directory is needed as well. - */ char buffer[_MAX_PATH * 3]; snprintf(buffer, sizeof(buffer), ! "import sys; sys.path=[r'%s', r'%s\\%s']", ! libdirname, libdirname, pZipBaseName); rc = PyRun_SimpleString(buffer); --- 203,209 ---- { int rc; char buffer[_MAX_PATH * 3]; snprintf(buffer, sizeof(buffer), ! "import sys; sys.path=[r'%s\\%s']", libdirname, pZipBaseName); rc = PyRun_SimpleString(buffer); |