浏览代码

Some fixes for mac

/pyrception-integration
Mohsen Kamalzadeh 3 年前
当前提交
d40d4dfe
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs

6
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/Scripts; 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);

EditorUtility.ClearProgressBar();
return;
}
virtualenvPath = virtualenvPath.Replace("Location: ", "").Trim();

}
cmd.Close();
return output;
}
}
正在加载...
取消
保存