From 7d87f4eb8737215323bfb9f7991e4d6519a310b0 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 17 Apr 2013 18:53:49 +1000 Subject: Better cache directory code for pre built libraries. --- linden/scripts/install.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linden') 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(): """In general, the installable files do not change much, so find a host/user specific location to cache files.""" user = _getuser() - cache_dir = "/var/tmp/%s/install.cache" % user - if _get_platform() == 'windows': - cache_dir = os.path.join(tempfile.gettempdir(), \ - 'install.cache.%s' % user) + if sys.platform != 'cygwin' and _get_platform() == 'windows': + cache_dir = os.path.join(tempfile.gettempdir(), 'install.cache.%s' % user) + else: + cache_dir = "/var/tmp/%s/install.cache" % user return cache_dir def parse_args(): -- cgit v1.1