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