mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 19:33:45 +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__':
|
if __name__ == '__main__':
|
||||||
os.makedirs('generated', exist_ok=True)
|
os.makedirs('generated', exist_ok=True)
|
||||||
os.chdir('generated')
|
os.chdir('generated')
|
||||||
|
try:
|
||||||
generate_documentation('../../telethon_generator/scheme.tl')
|
generate_documentation('../../telethon_generator/scheme.tl')
|
||||||
copy_resources()
|
copy_resources()
|
||||||
|
finally:
|
||||||
|
os.chdir(os.pardir)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user