浏览代码

Returning None for early exit

/asymm-envs
Alphonso Crawford 5 年前
当前提交
d308d713
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 6
      ml-agents-envs/mlagents_envs/environment.py

6
ml-agents-envs/mlagents_envs/environment.py


@staticmethod
def validate_environment_path(env_path: str) -> Optional[str]:
if not (glob.glob(env_path) or glob.glob(env_path + ".*")):
raise UnityEnvironmentException(
"Couldn't launch the {0} environment. "
"Provided filename does not match any environments.".format(env_path)
)
return None
cwd = os.getcwd()
launch_string = None
true_filename = os.path.basename(os.path.normpath(env_path))

正在加载...
取消
保存