diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 9c8751ea..d5e2120d 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -1055,8 +1055,9 @@ class ReplApplication(Cmd, ConsoleApplication): self._format_obj(obj, only) if path: - # Let's go back to the parent directory - self.working_path.restore() + for _path in path.split('/'): + # Let's go back to the parent directory + self.working_path.up() else: # Save collections only if we listed the current path. self.collections = collections