From b352ef334eac1d3fff853564da051514ae4417d4 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 9 Jul 2019 19:10:11 +0200 Subject: [PATCH] Fix Pyrogram's API template path --- compiler/docs/compiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index b9e13dd1..6864f9de 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -255,7 +255,7 @@ def pyrogram_api(): shutil.rmtree(root, ignore_errors=True) os.mkdir(root) - with open("template/methods.rst") as f: + with open(HOME + "/template/methods.rst") as f: template = f.read() with open(root + "/index.rst", "w") as f: @@ -349,7 +349,7 @@ def pyrogram_api(): shutil.rmtree(root, ignore_errors=True) os.mkdir(root) - with open("template/types.rst") as f: + with open(HOME + "/template/types.rst") as f: template = f.read() with open(root + "/index.rst", "w") as f: @@ -439,7 +439,7 @@ def pyrogram_api(): shutil.rmtree(root, ignore_errors=True) os.mkdir(root) - with open("template/bound-methods.rst") as f: + with open(HOME + "/template/bound-methods.rst") as f: template = f.read() with open(root + "/index.rst", "w") as f: