]> git.saurik.com Git - wxWidgets.git/commitdiff
internal browser creates temp file in current dir, safer if /tmp doesn't
authorHarco de Hilster <harcoh@caos.kun.nl>
Sun, 31 Jan 1999 22:26:35 +0000 (22:26 +0000)
committerHarco de Hilster <harcoh@caos.kun.nl>
Sun, 31 Jan 1999 22:26:35 +0000 (22:26 +0000)
exist

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/wxPython/tests/wxSlash.py

index 855389aa38098ad42c4ba405485d3b4047301c5d..6a493ac1063dab7a4b535e1e0beee85a791a0e9c 100644 (file)
@@ -84,14 +84,14 @@ class HTMLTextView(wxFrame):
             return
         self.logprint("Receiving data...")
         data = f.read()
             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()
         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)
         self.text.SetValue(tmp.read())
         self.SetTitle(url)
         self.logprint(url)