Exemple #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")
Exemple #2
0
 def setUp(self):
     self.convert = Convertor.Convertor()