예제 #1
0
    def do_POST(self):
        print('begin')

        self.gitpull(GitSrcPath)

        self.stopHugo()

        convert = Convertor.Convertor()
        convert.excute(GitSrcPath, TargetPath)
        self.startHugo()
        print("finished")
        self.wfile.write(b"msg finished")
예제 #2
0
 def setUp(self):
     self.convert = Convertor.Convertor()