mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Ensure the working directory is unaltered after generating docs
This commit is contained in:
parent
40d80f73ee
commit
d5ba259d4e
|
@ -563,5 +563,8 @@ def copy_resources():
|
|||
if __name__ == '__main__':
|
||||
os.makedirs('generated', exist_ok=True)
|
||||
os.chdir('generated')
|
||||
generate_documentation('../../telethon_generator/scheme.tl')
|
||||
copy_resources()
|
||||
try:
|
||||
generate_documentation('../../telethon_generator/scheme.tl')
|
||||
copy_resources()
|
||||
finally:
|
||||
os.chdir(os.pardir)
|
||||
|
|
Loading…
Reference in New Issue
Block a user