From: Eric S. Raymond Date: Thu, 13 Dec 2007 23:59:23 +0000 (+0000) Subject: Use /tmp for logs, as /usr/tmp is not available under Ubuntu. X-Git-Tag: 2.0~49 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=e27dfc4666b7e243b895518efac276833621e49e Use /tmp for logs, as /usr/tmp is not available under Ubuntu. --- diff --git a/src/sst.py b/src/sst.py index c1785ee..920fbd1 100644 --- a/src/sst.py +++ b/src/sst.py @@ -6200,9 +6200,10 @@ if __name__ == '__main__': raise SystemExit, 1 # where to save the input in case of bugs try: - logfp = open("/usr/tmp/sst-input.log", "w") + logfp = open("/tmp/sst-input.log", "w") except IOError: sys.stderr.write("sst: warning, can't open logfile\n") + sys.exit(1) if logfp: logfp.write("# seed %s\n" % seed) logfp.write("# options %s\n" % " ".join(arguments))