|
|
|
|
|
|
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"); |
|
|
|