|
|
|
|
|
|
[MenuItem("Window/Pyrception/Run")] |
|
|
|
static void RunPyrception() |
|
|
|
{ |
|
|
|
#if UNITY_EDITOR_OSX
|
|
|
|
|
|
|
|
#endif
|
|
|
|
string path = Path.GetFullPath(Application.dataPath.Replace("/Assets", "")); |
|
|
|
#if UNITY_EDITOR_WIN
|
|
|
|
string packagesPath = Path.GetFullPath(Application.dataPath.Replace("/Assets","/Library/PythonInstall/Scripts")); |
|
|
|
|
|
|
EditorUtility.ClearProgressBar(); |
|
|
|
} |
|
|
|
|
|
|
|
#if UNITY_EDITOR_OX
|
|
|
|
void OnDestroy() |
|
|
|
{ |
|
|
|
KillProcess(); |
|
|
|
|
|
|
currentProcessId = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Executes command in cmd or console depending on system
|
|
|
|