浏览代码

replace --data value by cd before command

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

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


[MenuItem("Window/Pyrception/Run")]
static void RunPyrception()
{
if(currentProcess != null)
/*if(currentProcess != null)
}
}*/
pathToData = pathToData.Replace("/", "\\");
command = $"cd {path}\\DataInsightsEnv\\Scripts\\ && activate && pyrception-utils.exe preview --data=\"{pathToData}\"/..\"";
command = $"cd \"{path}\\DataInsightsEnv\\Scripts\\\" && activate && cd \"{pathToData}\\..\" && \"{path}\\DataInsightsEnv\\Scripts\\pyrception-utils.exe\" preview --data=\".\"";
command = $"cd {path}/DataInsightsEnv/bin; activate; ./pyrception-utils preview --data=\"{pathToData}/..\"";
command = $"cd \"{path}/DataInsightsEnv/bin\"; activate; cd \"{pathToData}/..\" ; \"{path}/DataInsightsEnv/bin/pyrception-utils\" preview --data=\".\"";
#endif
int ExitCode = 0;
ExecuteCMD(command, ref ExitCode, waitForExit: false, displayWindow: true);

正在加载...
取消
保存