From ea41314e0b9d016e5c24c78d06f3e407ba1f65f8 Mon Sep 17 00:00:00 2001 From: WuXianChaoPin <1029559041@qq.com> Date: Fri, 15 Jun 2018 18:28:21 +0800 Subject: [PATCH] thift --- PixivSearch/thrift/QueryComment/Server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):