diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-11 16:12:55 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-11 16:12:55 -0500 |
commit | 47fab46ca3e1c5432c5e3c0de638b5bb8d104bbf (patch) | |
tree | 2a0d70692edea83dd50b319f8d5d7f9fe051db88 /python/servo/build_commands.py | |
parent | fc97a53a9413b1b72c8eb25f9a38a26bdd5beefe (diff) | |
download | servo-47fab46ca3e1c5432c5e3c0de638b5bb8d104bbf.tar.gz servo-47fab46ca3e1c5432c5e3c0de638b5bb8d104bbf.zip |
mach clean now finds the right virtualenv
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 2cb269eed69..e18e660d2dc 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -756,7 +756,8 @@ class MachCommands(CommandBase): def clean(self, manifest_path=None, params=[], verbose=False): self.ensure_bootstrapped() - virtualenv_path = path.join(self.get_top_dir(), 'python', '_virtualenv') + virtualenv_fname = '_virtualenv%d.%d' % (sys.version_info[0], sys.version_info[1]) + virtualenv_path = path.join(self.get_top_dir(), 'python', virtualenv_fname) if path.exists(virtualenv_path): print('Removing virtualenv directory: %s' % virtualenv_path) shutil.rmtree(virtualenv_path) |