浏览代码

fix editor path on linux

/yamato-linux-debug-venv
Chris Elion 4 年前
当前提交
bcdbd540
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      ml-agents/tests/yamato/yamato_utils.py

5
ml-agents/tests/yamato/yamato_utils.py


def get_unity_executable_path():
downloader_install_path = "./.Editor/Unity.app/Contents/MacOS/Unity"
if platform == "darwin":
downloader_install_path = "./.Editor/Unity.app/Contents/MacOS/Unity"
else: # if platform == "linux":
downloader_install_path = "./.Editor/Unity"
if os.path.exists(downloader_install_path):
return downloader_install_path
raise FileNotFoundError("Can't find executable from unity-downloader-cli")

正在加载...
取消
保存