diff options
author | David Walter Seikel | 2013-04-17 18:53:49 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-04-17 18:53:49 +1000 |
commit | 7d87f4eb8737215323bfb9f7991e4d6519a310b0 (patch) | |
tree | 0aee22676a2783ef011f4cbfe1f0c71cd8289525 /linden | |
parent | Bump version number to 1.4.0.3 exp 0. (diff) | |
download | meta-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-x | linden/scripts/install.py | 8 |
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 | ||
839 | def parse_args(): | 839 | def parse_args(): |