From 21b757bc57659d6a3d09619ab51d9d7072ec0e33 Mon Sep 17 00:00:00 2001 From: Christopher Anderson Date: Sun, 9 Nov 2025 00:37:25 +1100 Subject: [PATCH] build.py: updated path normalization for `.js` files (req for correct windows builds) --- __build__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__build__.py b/__build__.py index 532ddda8..52de2590 100644 --- a/__build__.py +++ b/__build__.py @@ -115,7 +115,7 @@ def build(without_tests = True, fix = False): log_step(msg='Cleaning Imports') js_files = glob(os.path.join(DIR_WEB, '**', '*.js'), recursive=True) for file in js_files: - rel_path = file.replace(f'{DIR_WEB}/', "") + rel_path = os.path.relpath(file, DIR_WEB) with open(file, 'r', encoding="utf-8") as f: filedata = f.read() num = rel_path.count(os.sep)