Пример #1
0
 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)
Пример #2
0
 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)