示例#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()