diff options
-rw-r--r-- | meson.build | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/meson.build b/meson.build index 189c442..077605b 100644 --- a/meson.build +++ b/meson.build @@ -134,16 +134,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(doc_reference) - file_exists = run_command(python3, '-c', cmd_py, check: false).returncode() != 0 - if not file_exists - warning('Missing files in untracked/. You may have to enable maintainer-mode.') - endif +elif not import('fs').is_file(doc_reference) + warning('Missing files in untracked/. You may have to enable maintainer-mode.') endif # Check if perl is required and available. |