提交 6e91ebc0 编写于 作者: D dzhwinter

"remove extrafile"

上级 b098ef69
......@@ -41,7 +41,9 @@ def __initialize_meta_info__():
"""
fn = fetch()
rar = rarfile.RarFile(fn)
return rar
dirpath = os.path.dirname(fn)
rar.extractall(path=dirpath)
return dirpath
class Query(object):
......@@ -271,7 +273,7 @@ def load_from_text(filepath, shuffle=True, fill_missing=-1):
querylists = []
querylist = None
fn = __initialize_meta_info__()
with fn.open(os.path.join(fn, filepath)) as f:
with open(os.path.join(fn, filepath)) as f:
for line in f:
query = Query()
query = query._parse_(line)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册