From a4bdbfddcbf17e053d4a2d189dd0918881799340 Mon Sep 17 00:00:00 2001 From: Florian Schulze Date: Wed, 28 Nov 2012 12:18:44 +0100 Subject: [PATCH] Add missing removal of PYTHONPATH. Refs #101 --- src/mr/developer/mercurial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mr/developer/mercurial.py b/src/mr/developer/mercurial.py index c96f8d0..b2d3623 100644 --- a/src/mr/developer/mercurial.py +++ b/src/mr/developer/mercurial.py @@ -52,6 +52,7 @@ def _update_to_rev(self, rev): path = self.source['path'] name = self.source['name'] env = dict(os.environ) + env.pop('PYTHONPATH', None) cmd = subprocess.Popen(['hg', 'checkout', rev], cwd=path, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = cmd.communicate()