浏览代码

change Scripts to bin for OSX and linux

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

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


"grep" +
#endif
" Location:", ref ExitCode, redirectOutput: true);
virtualenvPath = virtualenvPath.Replace("Location: ", "").Trim();
virtualenvPath += "/../Scripts";
virtualenvPath = virtualenvPath.Replace("Location: ", "").Trim();
virtualenvPath = virtualenvPath.Replace("/", "\\");
ExecuteCMD($"{virtualenvPath}\\virtualenv -p python3 \"{path}\\DataInsightsEnv\"", ref ExitCode);
virtualenvPath += "\\..\\Scripts";
ExecuteCMD($"{virtualenvPath}\\virtualenv.exe -p python3 \"{path}\\DataInsightsEnv\"", ref ExitCode);
virtualenvPath += "/../bin";
ExecuteCMD($"{virtualenvPath}/virtualenv -p python3 \"{path}/DataInsightsEnv\"", ref ExitCode);
#endif
if (ExitCode != 0) {

#if UNITY_EDITOR_WIN
ExecuteCMD($"\"{path}\\DataInsightsEnv\\Scripts\\activate\" && cd \"{path}\\DataInsightsEnv\\pyrception-util\" && pip3 --no-cache-dir install -e . && deactivate", ref ExitCode);
#elif (UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX)
ExecuteCMD($"source \"{path}/DataInsightsEnv/Scripts/activate\"; cd \"{path}/DataInsightsEnv/pyrception-util\"; pip3 --no-cache-dir install -e .; deactivate", ref ExitCode);
ExecuteCMD($"source \"{path}/DataInsightsEnv/bin/activate\"; cd \"{path}/DataInsightsEnv/pyrception-util\"; pip3 --no-cache-dir install -e .; deactivate", ref ExitCode);
#endif
if (ExitCode != 0) {
EditorUtility.ClearProgressBar();

正在加载...
取消
保存