From: Guido van Rossum Date: Thu, 17 Oct 2002 16:26:45 +0000 (+0000) Subject: Use tempfile.gettempdir() to get the temp directory rather than X-Git-Tag: v2.3c1~3751 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9776bd8ddeeace9f48274aa49674a7be3b4fa85;p=thirdparty%2FPython%2Fcpython.git Use tempfile.gettempdir() to get the temp directory rather than hardcoding "/tmp". --- diff --git a/Demo/cgi/wiki.py b/Demo/cgi/wiki.py index f0208a416b3e..58dc51fd2272 100644 --- a/Demo/cgi/wiki.py +++ b/Demo/cgi/wiki.py @@ -1,6 +1,6 @@ """Wiki main program. Imported and run by cgi3.py.""" -import os, re, cgi, sys +import os, re, cgi, sys, tempfile escape = cgi.escape def main(): @@ -16,7 +16,7 @@ def main(): class WikiPage: - homedir = "/tmp" + homedir = tempfile.gettempdir() scripturl = os.path.basename(sys.argv[0]) def __init__(self, name):