mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
mach clean now finds the right virtualenv
This commit is contained in:
parent
fc97a53a94
commit
47fab46ca3
1 changed files with 2 additions and 1 deletions
|
@ -756,7 +756,8 @@ class MachCommands(CommandBase):
|
||||||
def clean(self, manifest_path=None, params=[], verbose=False):
|
def clean(self, manifest_path=None, params=[], verbose=False):
|
||||||
self.ensure_bootstrapped()
|
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):
|
if path.exists(virtualenv_path):
|
||||||
print('Removing virtualenv directory: %s' % virtualenv_path)
|
print('Removing virtualenv directory: %s' % virtualenv_path)
|
||||||
shutil.rmtree(virtualenv_path)
|
shutil.rmtree(virtualenv_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue