def decorated(self, **kwargs): if os.getcwd() != self.local: if DirCommands.isLocalDirectExist(self.local): DirCommands.enterDirAbs(self.local) else: raise GitError(self.local, "Local path not exist") return f(self, **kwargs)
def decorated(self, **kwargs): if os.getcwd() != self.local: DirCommands.enterDirAbs(self.local) return f(self, **kwargs)