mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
* doc improvement
* relative imports not allowed when module is not loaded (https://www.python.org/dev/peps/pep-0366/)
This commit is contained in:
parent
b5dfc5d514
commit
0e44657963
|
@ -56,7 +56,7 @@ Installing Telethon manually
|
||||||
(`GitHub <https://github.com/ricmoo/pyaes>`_, `package index <https://pypi.python.org/pypi/pyaes>`_)
|
(`GitHub <https://github.com/ricmoo/pyaes>`_, `package index <https://pypi.python.org/pypi/pyaes>`_)
|
||||||
2. Clone Telethon's GitHub repository: ``git clone https://github.com/LonamiWebs/Telethon.git``
|
2. Clone Telethon's GitHub repository: ``git clone https://github.com/LonamiWebs/Telethon.git``
|
||||||
3. Enter the cloned repository: ``cd Telethon``
|
3. Enter the cloned repository: ``cd Telethon``
|
||||||
4. Run the code generator: ``python3 telethon_generator/tl_generator.py``
|
4. Run the code generator: ``cd telethon_generator && python3 tl_generator.py``
|
||||||
5. Done!
|
5. Done!
|
||||||
|
|
||||||
Running Telethon
|
Running Telethon
|
||||||
|
|
|
@ -2,7 +2,10 @@ import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from .parser import SourceBuilder, TLParser
|
try:
|
||||||
|
from .parser import SourceBuilder, TLParser
|
||||||
|
except (ImportError, SystemError):
|
||||||
|
from parser import SourceBuilder, TLParser
|
||||||
|
|
||||||
|
|
||||||
def get_output_path(normal_path):
|
def get_output_path(normal_path):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user