浏览代码

attempt to fix space in path for pyrception on mac

/pyrception-integration
leopoldo-zugasti 4 年前
当前提交
ed30f2f5
共有 3 个文件被更改,包括 4 次插入1 次删除
  1. 2
      com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs
  2. 2
      com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/preview.py
  3. 1
      com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/pyrception.py

2
com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs


#if UNITY_EDITOR_WIN
command = $"cd {path}\\DataInsightsEnv\\Scripts\\ && activate && pyrception-utils.exe preview --data=\"{PlayerPrefs.GetString(SimulationState.latestOutputDirectoryKey)}/..\"";
#elif (UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX)
command = $"cd {path}/DataInsightsEnv/bin; activate; ./pyrception-utils preview \"--data={PlayerPrefs.GetString(SimulationState.latestOutputDirectoryKey)}/..\"";
command = $"cd {path}/DataInsightsEnv/bin; activate; ./pyrception-utils preview --data=\"{PlayerPrefs.GetString(SimulationState.latestOutputDirectoryKey)}/..\"";
#endif
int ExitCode = 0;
ExecuteCMD(command, ref ExitCode, waitForExit: false, displayWindow: true);

2
com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/preview.py


parser = argparse.ArgumentParser()
parser.add_argument("data", type=str)
args = parser.parse_args()
print("\n")
print("The path is: " + args.data)
preview_app(args)

1
com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/pyrception.py


:return: Returns an string iterator containing the paths to the matching files.
:rtype: Iterator[str]
"""
path = pathlib.Path(data_root)
file_list = []
for file_path in sorted(path.glob(pattern), key=file_number):

正在加载...
取消
保存