From f855e630cc1f05707835d796f5338de1fe68bd2f Mon Sep 17 00:00:00 2001 From: Harco de Hilster Date: Sun, 31 Jan 1999 22:26:35 +0000 Subject: [PATCH] internal browser creates temp file in current dir, safer if /tmp doesn't exist git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/tests/wxSlash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/wxPython/tests/wxSlash.py b/utils/wxPython/tests/wxSlash.py index 855389aa38..6a493ac106 100644 --- a/utils/wxPython/tests/wxSlash.py +++ b/utils/wxPython/tests/wxSlash.py @@ -84,14 +84,14 @@ class HTMLTextView(wxFrame): return self.logprint("Receiving data...") data = f.read() - tmp = open('/tmp/html.txt','w') + tmp = open('tmphtml.txt','w') fmt = formatter.AbstractFormatter(formatter.DumbWriter(tmp)) p = HTMLParser(fmt) self.logprint("Parsing data...") p.feed(data) p.close() tmp.close() - tmp = open('/tmp/html.txt', 'r') + tmp = open('tmphtml.txt', 'r') self.text.SetValue(tmp.read()) self.SetTitle(url) self.logprint(url) -- 2.45.2