浏览代码

added the logfile_path property to the environment class. Give a link to the logfile when the timeout error is launched.

Note: still need testing on windows
/tag-0.2.0
vincentpierre 7 年前
当前提交
5e1d05af
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      python/unityagents/environment.py

6
python/unityagents/environment.py


raise
@property
def logfile_path(self):
return self._log_path
@property
def brains(self):
return self._brains

raise UnityEnvironmentException("The environment took too long to respond. "
"No unity-environment.log file could be found.")
else:
print("An error may have occured in the environment. "
"You can check the logfile for more information at {}".format(self._log_path))
with open(self._log_path, "r") as f:
printing= False
for l in f:

正在加载...
取消
保存