浏览代码

change findstr to grep for OSX and linux

/pyrception-integration
leopoldo-zugasti 4 年前
当前提交
05614232
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs

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


EditorUtility.DisplayProgressBar("Setting up Pyrception", "Setting up virtualenv instance...", 1f / steps);
//get virtualenv actual location
string virtualenvPath = ExecuteCMD("pip3 show virtualenv | findstr Location:", ref ExitCode, redirectOutput: true);
string virtualenvPath = ExecuteCMD("pip3 show virtualenv | " +
#if UNITY_EDITOR_WIN
"findstr" +
#elif (UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX)
"grep" +
#endif
" Location:", ref ExitCode, redirectOutput: true);
virtualenvPath = virtualenvPath.Replace("Location: ", "").Trim();
if (ExitCode != 0) {
EditorUtility.ClearProgressBar();

正在加载...
取消
保存