diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-07 00:24:17 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-07 00:24:17 +0530 |
| commit | b9a7c0cf39e31cc1954399ca8d2339e0b2b7ce20 (patch) | |
| tree | 292ede074f42d2c88051b02c4e87a75253109d38 /mesonbuild/scripts/regen_checker.py | |
| parent | 7b8f41ce31c76bb4b6e86b2583c464a438ac4641 (diff) | |
| download | meson-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-x | mesonbuild/scripts/regen_checker.py | 2 |
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 |
