Skip to content

Commit 5bc2c3c

Browse files
committed
Fix more outdated paths
1 parent 2aa683f commit 5bc2c3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/build-index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def build_redirect(shortname, spec_folder):
119119
template = jinja_env.get_template("redirect.html.j2")
120120
contents = template.render(spec_folder=spec_folder)
121121

122-
folder = os.path.join("./csswg-drafts", shortname)
122+
folder = os.join(".", shortname)
123123
try:
124124
os.mkdir(folder)
125125
except FileExistsError:
@@ -147,7 +147,7 @@ def build_redirect(shortname, spec_folder):
147147

148148
specgroups = defaultdict(list)
149149

150-
for entry in os.scandir("./csswg-drafts"):
150+
for entry in os.scandir("."):
151151
if entry.is_dir():
152152
# Not actual specs, just examples.
153153
if entry.name in ["css-module"]:
@@ -198,6 +198,6 @@ def build_redirect(shortname, spec_folder):
198198
if shortname == "css-snapshot":
199199
build_redirect("css", currentWorkDir)
200200

201-
with open("./csswg-drafts/index.html", mode='w', encoding="UTF-8") as f:
201+
with open("./index.html", mode='w', encoding="UTF-8") as f:
202202
template = jinja_env.get_template("index.html.j2")
203203
f.write(template.render(specgroups=specgroups))

0 commit comments

Comments
 (0)