summaryrefslogtreecommitdiff
path: root/dev-python/wxpython/files/wxpython-2.8-cache-writable.patch
blob: 57f26b37c2e8a92ee8474223641318c533417aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Use /tmp for cache files since the user won't have
write permissions on ${DOCDIR}.

diff -Naurp docs-orig/viewdocs.py docs/viewdocs.py
--- docs-orig/viewdocs.py	2008-09-28 15:59:16.000000000 -0600
+++ docs/viewdocs.py	2009-01-18 00:16:27.000000000 -0600
@@ -16,11 +16,11 @@ if not basePath:
 
 
 # test for write access
-if os.access(basePath, os.W_OK):
+if os.access('/tmp', os.W_OK):
 
     # setup the args
     args = ['',
-        '--cache='+basePath,
+        '--cache=/tmp',
         os.path.join(basePath, 'wx.zip'),
         ]