diff --git a/PixivSearch/thrift/QueryComment/Server.py b/PixivSearch/thrift/QueryComment/Server.py index 956f024..d3d6d14 100644 --- a/PixivSearch/thrift/QueryComment/Server.py +++ b/PixivSearch/thrift/QueryComment/Server.py @@ -11,7 +11,7 @@ from PixivSearch.thrift.QueryComment import QueryComment from PixivSearch.thrift.QueryComment.QueryComment import Iface commentPath = '/root/PixivSearch/PixivSearch/thrift/tmpFile/comment' - +#commentPath='/home/hua/下载/comment' class Server(Iface): def commentSumList(self, cids): @@ -31,7 +31,7 @@ class Server(Iface): for cid in cids: downloadXml(path, cid, histroy=False) - zipFile = '{path}/{fileName}.zip'.format(path=path,fileName=fileName) + zipFile = '{commentPath}/{fileName}.zip'.format(commentPath=commentPath,fileName=fileName) print(zipFile) Util.zip(path, zipFile) if os.path.isfile(zipFile):