예제 #1
0
파일: pidgey.py 프로젝트: TamirAl/pidgey
 def precmd(self, line):
     self.api.set_position(
         self.location['latitude'],
         self.location['longitude'],
         self.location['altitude']
     )
     return Cmd.precmd(self, line)
예제 #2
0
 def precmd(self, *args):
     '''
     call the hook _pre and delegate to plugins
     '''
     self._pre(*args)
     return Cmd.precmd(self, *args)