summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/regen_checker.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-07 00:24:17 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-07 00:24:17 +0530
commitb9a7c0cf39e31cc1954399ca8d2339e0b2b7ce20 (patch)
tree292ede074f42d2c88051b02c4e87a75253109d38 /mesonbuild/scripts/regen_checker.py
parent7b8f41ce31c76bb4b6e86b2583c464a438ac4641 (diff)
downloadmeson-b9a7c0cf39e31cc1954399ca8d2339e0b2b7ce20.tar.gz
misc: Use relative imports everywhere
Using 'mesonbuild' as the module can cause it to use the system-installed module and can also break if we rename the directory, so avoid that by always using relative imports.
Diffstat (limited to 'mesonbuild/scripts/regen_checker.py')
-rwxr-xr-xmesonbuild/scripts/regen_checker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/regen_checker.py b/mesonbuild/scripts/regen_checker.py
index e8e107748..5077970e2 100755
--- a/mesonbuild/scripts/regen_checker.py
+++ b/mesonbuild/scripts/regen_checker.py
@@ -29,7 +29,7 @@ def need_regen(regeninfo, regen_timestamp):
# We must make sure to recreate it, even if we do not regenerate the solution.
# Otherwise, Visual Studio will always consider the REGEN project out of date.
print("Everything is up-to-date, regeneration of build files is not needed.")
- from mesonbuild.backend.vs2010backend import Vs2010Backend
+ from ..backend.vs2010backend import Vs2010Backend
Vs2010Backend.touch_regen_timestamp(regeninfo.build_dir)
return False