diff --git a/__build__.py b/__build__.py index 532ddda..52de259 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)