We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3625cc3 commit c54197aCopy full SHA for c54197a
ml-agents-envs/mlagents_envs/env_utils.py
@@ -68,6 +68,16 @@ def validate_environment_path(env_path: str) -> Optional[str]:
68
candidates = glob.glob(os.path.join(cwd, env_path + ".exe"))
69
if len(candidates) == 0:
70
candidates = glob.glob(env_path + ".exe")
71
+ if len(candidates) == 0:
72
+ # Look for e.g. 3DBall\UnityEnvironment.exe
73
+ crash_handlers = set(
74
+ glob.glob(os.path.join(cwd, env_path, "UnityCrashHandler*.exe"))
75
+ )
76
+ candidates = [
77
+ c
78
+ for c in glob.glob(os.path.join(cwd, env_path, "*.exe"))
79
+ if c not in crash_handlers
80
+ ]
81
if len(candidates) > 0:
82
launch_string = candidates[0]
83
return launch_string
0 commit comments