From ba528b140cc755617dd6ae62a0a9e95b8e583400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= <61203964+grey-cat-1908@users.noreply.github.com> Date: Tue, 26 Dec 2023 10:29:18 +0300 Subject: [PATCH] vrode fix --- build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.py b/build.py index 59a95c8..68844df 100644 --- a/build.py +++ b/build.py @@ -39,8 +39,7 @@ def go_through(directory): if len(filename.split(".")) == 1: content = gen_file(f"{os.getcwd()}/{directory}/{filename}/index.md") - fier = content[content.find('/'):] - + _, _, fier = directory.partition('/') if len(fier) != 0: fier += "/" loc = f"{fier}{filename}/index.html"