コード例 #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
ファイル: gitcommands.py プロジェクト: haohuanw/caencompiler
 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)