From 2ab9078f21e7e9aca81d5568f8c984480a171631 Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
Date: Mon, 9 May 2022 18:15:43 -0400
Subject: Fix spelling test when building as a subproject

---
 wscript | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/wscript b/wscript
index f05ae77..5c7b5fd 100644
--- a/wscript
+++ b/wscript
@@ -722,17 +722,20 @@ def test(tst):
 
         if "CODESPELL" in tst.env:
             spell_ignore = [
-                "../doc/pygments.css",
-                "../lv2specgen/DTD/*",
-                "../schemas.lv2/doap.ttl",
-                "../waflib",
+                "doc/pygments.css",
+                "lv2specgen/DTD/*",
+                "schemas.lv2/doap.ttl",
+                "waflib",
             ]
 
+            spell_ignore_paths = [os.path.join(tst.src_path("."), x)
+                                  for x in spell_ignore]
+
             check(tst.env.CODESPELL + [
                 "-d",
                 "-q", "3",
-                "-S", ','.join(spell_ignore),
-                '..',
+                "-S", ','.join(spell_ignore_paths),
+                tst.src_path("."),
             ])
 
         try:
-- 
cgit v1.2.1