aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2016-04-28 14:09:44 +0200
committerMinijackson <minijackson@riseup.net>2016-04-28 14:09:44 +0200
commit8e94ddf62590b73837a77415183de80089cd0948 (patch)
tree906a21fccc056694fb964389fc51ddd71b5b7867
parente8f3e1ef3abf565d5dffe72f201e204555f019fe (diff)
downloadmeson-8e94ddf62590b73837a77415183de80089cd0948.zip
meson-8e94ddf62590b73837a77415183de80089cd0948.tar.gz
meson-8e94ddf62590b73837a77415183de80089cd0948.tar.bz2
Use module path when looking for meson scripts dir
-rw-r--r--mesonbuild/environment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index c4591b4..a0f410a 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -131,7 +131,8 @@ class Environment():
coredata.save(self.coredata, cdf)
def get_script_dir(self):
- return os.path.join(os.path.dirname(self.meson_script_file), '../scripts')
+ import mesonbuild.scripts
+ return os.path.dirname(mesonbuild.scripts.__file__)
def get_log_dir(self):
return self.log_dir