aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/servo/bootstrap_commands.py2
-rw-r--r--python/servo/bootstrapper/bootstrap.py3
-rw-r--r--python/servo/bootstrapper/windows_msvc.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py
index 78d15160736..8df02304529 100644
--- a/python/servo/bootstrap_commands.py
+++ b/python/servo/bootstrap_commands.py
@@ -145,7 +145,7 @@ class MachCommands(CommandBase):
def bootstrap(self, android=False, interactive=False, force=False):
from servo.bootstrapper.bootstrap import Bootstrapper
- bootstrapper = Bootstrapper()
+ bootstrapper = Bootstrapper(self.context)
bootstrapper.bootstrap(android=android, interactive=interactive, force=force)
@Command('bootstrap-rust',
diff --git a/python/servo/bootstrapper/bootstrap.py b/python/servo/bootstrapper/bootstrap.py
index c6ac9d196eb..d07dc12fc3c 100644
--- a/python/servo/bootstrapper/bootstrap.py
+++ b/python/servo/bootstrapper/bootstrap.py
@@ -13,7 +13,7 @@ from windows_msvc import WindowsMsvcBootstrapper
class Bootstrapper(object):
"""Main class that performs system bootstrap."""
- def __init__(self):
+ def __init__(self, context):
self.instance = None
cls = None
args = {}
@@ -28,6 +28,7 @@ class Bootstrapper(object):
sys.exit('Bootstrap support is not yet available for your OS.')
self.instance = cls(**args)
+ self.instance.context = context
def bootstrap(self, android=False, interactive=False, force=False):
self.instance.interactive = interactive
diff --git a/python/servo/bootstrapper/windows_msvc.py b/python/servo/bootstrapper/windows_msvc.py
index f4926276549..11ff765c99d 100644
--- a/python/servo/bootstrapper/windows_msvc.py
+++ b/python/servo/bootstrapper/windows_msvc.py
@@ -23,7 +23,7 @@ class WindowsMsvcBootstrapper(BaseBootstrapper):
def install_system_packages(self, packages=deps):
from servo.bootstrap_commands import extract, download_file
- deps_dir = os.path.join(".servo", "msvc-dependencies")
+ deps_dir = os.path.join(self.context.sharedir, "msvc-dependencies")
deps_url = "https://servo-rust.s3.amazonaws.com/msvc-deps/"
first_run = True