summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build12
1 files changed, 2 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 974ae2ae..838d42d8 100644
--- a/meson.build
+++ b/meson.build
@@ -165,16 +165,8 @@ if maintainer_mode
project_source_root / 'untracked' / 'docs',
check: true,
)
-else
- cmd_py = '''
-import os
-import sys
-sys.exit(os.path.isfile("@0@"))
-'''.format(generate_binding_py)
- file_exists = run_command(python3, '-c', cmd_py, check: false).returncode() != 0
- if not file_exists
- error('Missing files in untracked/. You must enable maintainer-mode.')
- endif
+elif not import('fs').is_file(generate_binding_py)
+ error('Missing files in untracked/. You must enable maintainer-mode.')
endif
# Check if perl is required and available.