diff --git a/telethon_generator/error_descriptions b/telethon_generator/data/error_descriptions similarity index 100% rename from telethon_generator/error_descriptions rename to telethon_generator/data/error_descriptions diff --git a/telethon_generator/errors.json b/telethon_generator/data/errors.json similarity index 100% rename from telethon_generator/errors.json rename to telethon_generator/data/errors.json diff --git a/telethon_generator/scheme.tl b/telethon_generator/data/scheme.tl similarity index 100% rename from telethon_generator/scheme.tl rename to telethon_generator/data/scheme.tl diff --git a/telethon_generator/fetch_errors.py b/telethon_generator/fetch_errors.py index 2402937c..e7712efd 100644 --- a/telethon_generator/fetch_errors.py +++ b/telethon_generator/fetch_errors.py @@ -2,7 +2,7 @@ import sys import json import urllib.request -OUT = 'errors.json' +OUT = 'data/errors.json' URL = 'https://rpc.pwrtelegram.xyz/?all' diff --git a/telethon_generator/generator.py b/telethon_generator/generator.py index c9cf503c..2a80aac0 100644 --- a/telethon_generator/generator.py +++ b/telethon_generator/generator.py @@ -2,11 +2,11 @@ from telethon_generator.parsers import parse_errors, parse_tl, find_layer from telethon_generator.generators import generate_errors, generate_tlobjects -ERRORS_INPUT_JSON = 'errors.json' -ERRORS_INPUT_DESC = 'error_descriptions' +ERRORS_INPUT_JSON = 'data/errors.json' +ERRORS_INPUT_DESC = 'data/error_descriptions' ERRORS_OUTPUT = '../telethon/errors/rpc_error_list.py' -TLOBJECT_INPUT_TL = 'scheme.tl' +TLOBJECT_INPUT_TL = 'data/scheme.tl' TLOBJECT_OUTPUT = '../telethon/tl'