# -*- coding:utf-8 -*-
import os
import time


def dev_robot():
    path = "/home/pi/code/wechatserver/wechatclient/"
    os.chdir(path)
    try:
        os.system("git fetch  --all")
        os.system("git reset --hard tornado")
        os.system("git pull")
        os.system("python clinet.py")
    except Exception as e:
        raise


def timer():
	while True:
		time.sleep(10)
		cas_val = dev_robot()
		print (cas_val)

if __name__ == '__main__':
	timer()

@@ -257,46 +257,8 @@
 l%22)%0A
-        os.system(%22python clinet.py%22)%0A
     
@@ -300,16 +300,20 @@
 e%0A%0A%0Adef 
+git_
 timer():
@@ -386,16 +386,166 @@
 s_val)%0A%0A
+def app_timer():%0A%09path = %22/home/pi/code/wechatserver/wechatclient/%22%0A    os.chdir(path)%0A%09while True:%0A%09%09time.sleep(10)%0A%09%09os.system(%22python clinet.py%22)%0A%0A
 if __nam
@@ -564,16 +564,33 @@
 in__':%0A%09
+git_timer()%0A%09app_
 timer()%0A

fix bug