Fix compiled errors destination path
This commit is contained in:
parent
d215f4b515
commit
bf7bd45f1c
@ -21,7 +21,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
HOME = "compiler/error"
|
HOME = "compiler/errors"
|
||||||
DEST = "pyrogram/errors/exceptions"
|
DEST = "pyrogram/errors/exceptions"
|
||||||
NOTICE_PATH = "NOTICE"
|
NOTICE_PATH = "NOTICE"
|
||||||
|
|
||||||
|
6
setup.py
6
setup.py
@ -25,7 +25,7 @@ from setuptools import setup, find_packages, Command
|
|||||||
|
|
||||||
from compiler.api import compiler as api_compiler
|
from compiler.api import compiler as api_compiler
|
||||||
from compiler.docs import compiler as docs_compiler
|
from compiler.docs import compiler as docs_compiler
|
||||||
from compiler.errors import compiler as error_compiler
|
from compiler.errors import compiler as errors_compiler
|
||||||
|
|
||||||
with open("requirements.txt", encoding="utf-8") as r:
|
with open("requirements.txt", encoding="utf-8") as r:
|
||||||
requires = [i.strip() for i in r]
|
requires = [i.strip() for i in r]
|
||||||
@ -119,7 +119,7 @@ class Generate(Command):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.api:
|
if self.api:
|
||||||
error_compiler.start()
|
errors_compiler.start()
|
||||||
api_compiler.start()
|
api_compiler.start()
|
||||||
|
|
||||||
if self.docs:
|
if self.docs:
|
||||||
@ -128,7 +128,7 @@ class Generate(Command):
|
|||||||
|
|
||||||
if len(argv) > 1 and argv[1] in ["bdist_wheel", "install", "develop"]:
|
if len(argv) > 1 and argv[1] in ["bdist_wheel", "install", "develop"]:
|
||||||
api_compiler.start()
|
api_compiler.start()
|
||||||
error_compiler.start()
|
errors_compiler.start()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Pyrogram",
|
name="Pyrogram",
|
||||||
|
Loading…
Reference in New Issue
Block a user