X-Git-Url: https://git.distorted.org.uk/~mdw/chopwood/blobdiff_plain/0c58273e69f08d17e69d9af6b04734bdce302532..2ec2b38ffe12eb14c57dc0053cdf70a93736a283:/cgi.py diff --git a/cgi.py b/cgi.py index 8009eaf..6ad9e75 100644 --- a/cgi.py +++ b/cgi.py @@ -51,7 +51,11 @@ CONF.DEFAULTS.update( ## A (maybe relative) URL for static content. By default this comes from ## the main script, but we hope that user agents cache it. - STATIC = _script_name + '/static') + STATIC = None) + +@CONF.hook +def set_static(): + if CFG.STATIC is None: CFG.STATIC = CFG.SCRIPT_NAME + '/static' ###-------------------------------------------------------------------------- ### Escaping and encoding.