Skip to content

Commit 836e6b9

Browse files
authored
Update postprocess_toc_yml.py
1 parent 105e30f commit 836e6b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci_scripts/postprocess_toc_yml.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
]
1717

1818
def rewrite_yml(data):
19-
with io.open('.\\_build\\docfx_yaml\\toc.yml', 'w', encoding='utf8') as outfile:
19+
with io.open('toc.yml', 'w', encoding='utf8') as outfile:
2020
yaml.dump(data, outfile, default_flow_style=False, allow_unicode=True)
2121

22-
with open(".\\_build\\docfx_yaml\\toc.yml", 'r') as stream:
22+
with open("toc.yml", 'r') as stream:
2323
try:
2424
data_loaded = yaml.load(stream)
2525
for node in data_loaded:
@@ -31,4 +31,3 @@ def rewrite_yml(data):
3131
rewrite_yml(data_loaded)
3232
except yaml.YAMLError as exc:
3333
print(exc)
34-

0 commit comments

Comments
 (0)