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