浏览代码

Update installer for MAC

/pyrception-integration
leopoldo-zugasti 3 年前
当前提交
c1f25118
共有 2 个文件被更改,包括 20 次插入6 次删除
  1. 15
      com.unity.perception/Editor/Visualizer/VisualizerInstaller.cs
  2. 11
      com.unity.perception/Editor/Visualizer/PipAPI.cs.meta

15
com.unity.perception/Editor/Visualizer/VisualizerInstaller.cs


Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.Personal), "Library"
),
_filenameStreamlitInstances);
_filename_streamlit_instances);
#endif
}
}

}
EditorUtility.ClearProgressBar();
PlayerPrefs.SetInt("VisualizerSetup", 1);
UnityEngine.Debug.Log("Successfully installed visualizer");
}
/// <summary>

));
}
}
catch
catch (FormatException)
{
continue;
}
catch
{
UnityEngine.Debug.LogError("Could not convert the following NetStat row to a Process to Port mapping.");
UnityEngine.Debug.LogError(NetStatRow);

#if UNITY_EDITOR_WIN
ExecuteCMD($"\"{packagesPath}\"\\pip3.bat show unity-cv-datasetvisualizer", ref ExitCode, ref output, waitForExit: 1500, getOutput: true);
#elif UNITY_EDITOR_OSX
ExecuteCMD($"cd \'{packagesPath}\'; ./python3.7 -m pip show unity-cv-datasetvisualizer", ref ExitCode, ref output, waitForExit: true, getOutput: true);
ExecuteCMD($"cd \'{packagesPath}\'; ./python3.7 -m pip show unity-cv-datasetvisualizer", ref ExitCode, ref output, waitForExit: 1500, getOutput: true);
#endif
if (ExitCode != 0) {
UnityEngine.Debug.LogError("Could not get the version of the current install of the visualizer tool");

#if UNITY_EDITOR_WIN
ExecuteCMD($"\"{packagesPath}\"\\pip3.bat list", ref ExitCode, ref output, waitForExit: 1500, getOutput: true);
#elif UNITY_EDITOR_OSX
ExecuteCMD($"cd \'{packagesPath}\'; ./python3.7 -m pip list", ref ExitCode, ref output, waitForExit: true, getOutput: true);
ExecuteCMD($"cd \'{packagesPath}\'; ./python3.7 -m pip list", ref ExitCode, ref output, waitForExit: 1500, getOutput: true);
#endif
if (ExitCode != 0) {
UnityEngine.Debug.LogError("Could not list pip packages");

11
com.unity.perception/Editor/Visualizer/PipAPI.cs.meta


fileFormatVersion: 2
guid: d3e1faf0844044cbd89fc0d5f3dc5691
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存