Commit 91e6cc63 authored by Guido van Rossum's avatar Guido van Rossum

Use tempfile.gettempdir() to get the temp directory rather than

hardcoding "/tmp".
parent a0cb6128
"""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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment