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

"remove extrafile"

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