mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-06 06:33:10 +03:00
Fix generating documentation failing on root directory
This commit is contained in:
parent
1593a4415e
commit
d0e66c104a
|
@ -360,7 +360,8 @@ def generate_documentation(scheme_file):
|
||||||
for tltype, constructors in tltypes.items():
|
for tltype, constructors in tltypes.items():
|
||||||
filename = get_path_for_type(tltype)
|
filename = get_path_for_type(tltype)
|
||||||
out_dir = os.path.dirname(filename)
|
out_dir = os.path.dirname(filename)
|
||||||
os.makedirs(out_dir, exist_ok=True)
|
if out_dir:
|
||||||
|
os.makedirs(out_dir, exist_ok=True)
|
||||||
|
|
||||||
# Since we don't have access to the full TLObject, split the type
|
# Since we don't have access to the full TLObject, split the type
|
||||||
if '.' in tltype:
|
if '.' in tltype:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user