Restore cwd
This commit is contained in:
parent
49aa02982b
commit
2ddc5c5249
@ -27,6 +27,7 @@ class CB:
|
|||||||
|
|
||||||
def __init__(self, args: Any) -> None:
|
def __init__(self, args: Any) -> None:
|
||||||
self.initialized = False
|
self.initialized = False
|
||||||
|
self._save_cwd = os.getcwd()
|
||||||
self.parse_config(args.config)
|
self.parse_config(args.config)
|
||||||
self.no_tests = getattr(args, 'no_tests', False)
|
self.no_tests = getattr(args, 'no_tests', False)
|
||||||
self._create_remote_dirs = getattr(args, 'create_remote_dirs', False)
|
self._create_remote_dirs = getattr(args, 'create_remote_dirs', False)
|
||||||
@ -73,6 +74,7 @@ class CB:
|
|||||||
unlink(name)
|
unlink(name)
|
||||||
unlink(self.work_dir / f'mkimage-profiles/conf.d/{PROG}.mk')
|
unlink(self.work_dir / f'mkimage-profiles/conf.d/{PROG}.mk')
|
||||||
|
|
||||||
|
os.chdir(self._save_cwd)
|
||||||
self.info(f'Finish {PROG}')
|
self.info(f'Finish {PROG}')
|
||||||
self.lock_file.close()
|
self.lock_file.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user