提交 e87f0aed 编写于 作者: T TomorrowIsAnOtherDay

ban passing a absolute path

上级 1ef5658e
......@@ -105,6 +105,9 @@ class Client(object):
for file in distributed_files:
assert os.path.exists(file)
assert not os.path.isabs(
file
), "[XPARL] Please do not distribute a file with absolute path."
with open(file, 'rb') as f:
content = f.read()
pyfiles['other_files'][file] = content
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册