GetPythonFileName() статический приватный Метод

static private GetPythonFileName ( ) : string
Результат string
Пример #1
0
        static void DownloadCompleted()
        {
            EditorUtility.ClearProgressBar();

            if (Main.IsDebug)
            {
                UnityEngine.Debug.Log("Python downloaded: " + www.size.ToString());
            }
            string dir       = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData);
            string localFile = dir + PythonManager.GetPythonFileName();


            try {
                System.IO.FileStream stream = new System.IO.FileStream(localFile, System.IO.FileMode.Create, System.IO.FileAccess.Write);
                stream.Write(www.bytes, 0, www.bytes.Length);

                // close file stream
                stream.Close();

                www = null;
            } catch (Exception ex) {
                if (Main.IsDebug)
                {
                    UnityEngine.Debug.LogError("Python download failed: " + ex.Message);
                }
            }

            Install();
        }
Пример #2
0
 static string GetFilePath()
 {
     return(GetFileFolder() + PythonManager.GetPythonFileName());
 }