diff options
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 25ed18bb29a..5b3ad797c03 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -69,8 +69,9 @@ class CommandBase(object): # Handle missing/default items self.config.setdefault("tools", {}) - self.config["tools"].setdefault("cache-dir", - path.join(context.topdir, ".servo")) + default_cache_dir = os.environ.get("SERVO_CACHE_DIR", + path.join(context.topdir, ".servo")) + self.config["tools"].setdefault("cache-dir", default_cache_dir) resolverelative("tools", "cache-dir") self.config["tools"].setdefault("cargo-home-dir", |