aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-04-17 18:53:49 +1000
committerDavid Walter Seikel2013-04-17 18:53:49 +1000
commit7d87f4eb8737215323bfb9f7991e4d6519a310b0 (patch)
tree0aee22676a2783ef011f4cbfe1f0c71cd8289525 /linden
parentBump version number to 1.4.0.3 exp 0. (diff)
downloadmeta-impy-7d87f4eb8737215323bfb9f7991e4d6519a310b0.zip
meta-impy-7d87f4eb8737215323bfb9f7991e4d6519a310b0.tar.gz
meta-impy-7d87f4eb8737215323bfb9f7991e4d6519a310b0.tar.bz2
meta-impy-7d87f4eb8737215323bfb9f7991e4d6519a310b0.tar.xz
Better cache directory code for pre built libraries.
Diffstat (limited to 'linden')
-rwxr-xr-xlinden/scripts/install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/scripts/install.py b/linden/scripts/install.py
index a7c0a48..99e8b73 100755
--- a/linden/scripts/install.py
+++ b/linden/scripts/install.py
@@ -830,10 +830,10 @@ def _default_installable_cache():
830 """In general, the installable files do not change much, so find a 830 """In general, the installable files do not change much, so find a
831 host/user specific location to cache files.""" 831 host/user specific location to cache files."""
832 user = _getuser() 832 user = _getuser()
833 cache_dir = "/var/tmp/%s/install.cache" % user 833 if sys.platform != 'cygwin' and _get_platform() == 'windows':
834 if _get_platform() == 'windows': 834 cache_dir = os.path.join(tempfile.gettempdir(), 'install.cache.%s' % user)
835 cache_dir = os.path.join(tempfile.gettempdir(), \ 835 else:
836 'install.cache.%s' % user) 836 cache_dir = "/var/tmp/%s/install.cache" % user
837 return cache_dir 837 return cache_dir
838 838
839def parse_args(): 839def parse_args():