Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def decorated(self, **kwargs):
     if os.getcwd() != self.local:
         DirCommands.enterDirAbs(self.local)
     return f(self, **kwargs)
Exemplo n.º 4
0
 def decorated(self, **kwargs):
     if os.getcwd() != self.local:
         DirCommands.enterDirAbs(self.local)
     return f(self, **kwargs)