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