mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 14:31:49 +00:00
fix issue #466
This commit is contained in:
5 files changed
+39
-14
No files matched your search
@@ -376,8 +376,10 @@ def reload_name(name):
|
||||
def change_cwd(path):
|
||||
old_cwd = os.getcwd()
|
||||
os.chdir(path)
|
||||
yield
|
||||
os.chdir(old_cwd)
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
os.chdir(old_cwd)
|
||||
|
||||
|
||||
def autoload():
|
||||
|
||||
Reference in new issue
Block a user