mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 17:43:32 +00:00
Small fix
This commit is contained in:
parent
9a60a51a00
commit
653f476bf5
@ -22,7 +22,7 @@ import shutil
|
|||||||
|
|
||||||
HOME = "compiler/api"
|
HOME = "compiler/api"
|
||||||
DESTINATION = "pyrogram/api"
|
DESTINATION = "pyrogram/api"
|
||||||
notice_path = "NOTICE"
|
NOTICE_PATH = "NOTICE"
|
||||||
SECTION_RE = re.compile(r"---(\w+)---")
|
SECTION_RE = re.compile(r"---(\w+)---")
|
||||||
LAYER_RE = re.compile(r"//\sLAYER\s(\d+)")
|
LAYER_RE = re.compile(r"//\sLAYER\s(\d+)")
|
||||||
COMBINATOR_RE = re.compile(r"^([\w.]+)#([0-9a-f]+)\s(?:.*)=\s([\w<>.]+);$", re.MULTILINE)
|
COMBINATOR_RE = re.compile(r"^([\w.]+)#([0-9a-f]+)\s(?:.*)=\s([\w<>.]+);$", re.MULTILINE)
|
||||||
@ -133,7 +133,7 @@ def start():
|
|||||||
with open("{}/template/class.txt".format(HOME)) as f:
|
with open("{}/template/class.txt".format(HOME)) as f:
|
||||||
template = f.read()
|
template = f.read()
|
||||||
|
|
||||||
with open(notice_path) as f:
|
with open(NOTICE_PATH) as f:
|
||||||
notice = []
|
notice = []
|
||||||
|
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
@ -412,5 +412,5 @@ def start():
|
|||||||
if "__main__" == __name__:
|
if "__main__" == __name__:
|
||||||
HOME = "."
|
HOME = "."
|
||||||
DESTINATION = "../../pyrogram/api"
|
DESTINATION = "../../pyrogram/api"
|
||||||
notice_path = "../../NOTICE"
|
NOTICE_PATH = "../../NOTICE"
|
||||||
start()
|
start()
|
||||||
|
Loading…
Reference in New Issue
Block a user