Making a standalone script

Gerhard Häring gerhard at bigfoot.de
Tue May 21 14:17:42 EDT 2002


* newgene <newgene at bigfoot.com> [2002-05-21 10:55 -0700]:
> Hi, group,
>      Does anyone know a tool can make a standalone python script,
> which is independent on any modules used in my original code, except
> python build-in modules? The reason I ask is I want to put a python
> cgi on a server. I used some third-party modules in this code, but I
> don't have the right to install those package onto our server.

Just move them directly into the cgi-bin directory or install them
elsewhere you have access to and append the directory to sys.path.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))





More information about the Python-list mailing list