aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/programs.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/programs.py')
-rw-r--r--mesonbuild/programs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py
index 9bf1844..13b9981 100644
--- a/mesonbuild/programs.py
+++ b/mesonbuild/programs.py
@@ -103,13 +103,12 @@ class ExternalProgram(mesonlib.HoldableObject):
def get_version(self, interpreter: T.Optional['Interpreter'] = None) -> str:
if not self.cached_version:
- from . import build
raw_cmd = self.get_command() + ['--version']
if interpreter:
res = interpreter.run_command_impl(interpreter.current_node, (self, ['--version']),
{'capture': True,
'check': True,
- 'env': build.EnvironmentVariables()},
+ 'env': mesonlib.EnvironmentVariables()},
True)
o, e = res.stdout, res.stderr
else: