mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-27 03:43: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')
|
||||||
generate_documentation('../../telethon_generator/scheme.tl')
|
try:
|
||||||
copy_resources()
|
generate_documentation('../../telethon_generator/scheme.tl')
|
||||||
|
copy_resources()
|
||||||
|
finally:
|
||||||
|
os.chdir(os.pardir)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user