We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
meson.build
1 parent 87563ea commit eb6a806Copy full SHA for eb6a806
meson.build
@@ -322,7 +322,9 @@ run_command(
322
python,
323
'-c',
324
'''
325
-open("@0@/.ignore", "w").write("""
+import sys, pathlib
326
+target = pathlib.Path(sys.argv[1]) / ".ignore"
327
+target.write_text("""
328
# `.ignore` takes precedence over `.gitignore` in dev tools (vscode, ripgrep etc.)
329
# Here we overwrite `.gitignore` rule to allow search in `gdextension_api` & `src`
330
# folders.
@@ -343,7 +345,8 @@ python_distrib
343
345
python_prebuild-*
344
346
README.txt
347
""")
-'''.format(meson.current_build_dir()),
348
+''',
349
+ meson.current_build_dir(),
350
check: true,
351
)
352
0 commit comments