Fix generating documentation failing on root directory

This commit is contained in:
Lonami Exo 2017-09-23 21:00:01 +02:00
parent 1593a4415e
commit d0e66c104a

View File

@ -360,7 +360,8 @@ def generate_documentation(scheme_file):
for tltype, constructors in tltypes.items():
filename = get_path_for_type(tltype)
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
if '.' in tltype: