mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Fix compiled errors destination path
This commit is contained in:
parent
d215f4b515
commit
bf7bd45f1c
@ -21,7 +21,7 @@ import os
|
||||
import re
|
||||
import shutil
|
||||
|
||||
HOME = "compiler/error"
|
||||
HOME = "compiler/errors"
|
||||
DEST = "pyrogram/errors/exceptions"
|
||||
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.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:
|
||||
requires = [i.strip() for i in r]
|
||||
@ -119,7 +119,7 @@ class Generate(Command):
|
||||
|
||||
def run(self):
|
||||
if self.api:
|
||||
error_compiler.start()
|
||||
errors_compiler.start()
|
||||
api_compiler.start()
|
||||
|
||||
if self.docs:
|
||||
@ -128,7 +128,7 @@ class Generate(Command):
|
||||
|
||||
if len(argv) > 1 and argv[1] in ["bdist_wheel", "install", "develop"]:
|
||||
api_compiler.start()
|
||||
error_compiler.start()
|
||||
errors_compiler.start()
|
||||
|
||||
setup(
|
||||
name="Pyrogram",
|
||||
|
Loading…
Reference in New Issue
Block a user