Skip to content

Commit b352ef3

Browse files
committed
Fix Pyrogram's API template path
1 parent ed2e7df commit b352ef3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

compiler/docs/compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def get_title_list(s: str) -> list:
255255
shutil.rmtree(root, ignore_errors=True)
256256
os.mkdir(root)
257257

258-
with open("template/methods.rst") as f:
258+
with open(HOME + "/template/methods.rst") as f:
259259
template = f.read()
260260

261261
with open(root + "/index.rst", "w") as f:
@@ -349,7 +349,7 @@ def get_title_list(s: str) -> list:
349349
shutil.rmtree(root, ignore_errors=True)
350350
os.mkdir(root)
351351

352-
with open("template/types.rst") as f:
352+
with open(HOME + "/template/types.rst") as f:
353353
template = f.read()
354354

355355
with open(root + "/index.rst", "w") as f:
@@ -439,7 +439,7 @@ def get_title_list(s: str) -> list:
439439
shutil.rmtree(root, ignore_errors=True)
440440
os.mkdir(root)
441441

442-
with open("template/bound-methods.rst") as f:
442+
with open(HOME + "/template/bound-methods.rst") as f:
443443
template = f.read()
444444

445445
with open(root + "/index.rst", "w") as f:

0 commit comments

Comments
 (0)