StonehearthEditor.FilePreview.localizeFile_Click C# (CSharp) Method

localizeFile_Click() private method

private localizeFile_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void localizeFile_Click(object sender, EventArgs e)
        {
            ProcessStartInfo start = new ProcessStartInfo();
            string generateLocPythonFile = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "/scripts/generate_loc_keys.py";
            start.FileName = generateLocPythonFile;
            string filePath = mFileData.Path;
            string modsRoot = ModuleDataManager.GetInstance().ModsDirectoryPath;
            start.Arguments = string.Format("-r {0} {1}", modsRoot, filePath);
            ////MessageBox.Show("executing command: " + generateLocPythonFile + " -r " + modsRoot + " " + filePath);

            Process myProcess = Process.Start(start);
            myProcess.WaitForExit();
            if (mOwner != null)
            {
                mOwner.Reload();
            }
        }