Fix for roaming profile

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@88 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-10-26 17:51:47 +00:00
parent d6da3f5664
commit 45bfc670b8

View File

@ -956,9 +956,9 @@ namespace Nikse.SubtitleEdit.Forms
string tempTextFileName = Path.GetTempPath() + Guid.NewGuid().ToString();
Process process = new Process();
process.StartInfo = new ProcessStartInfo(Configuration.BaseDirectory + "Tesseract" + Path.DirectorySeparatorChar + "tesseract.exe");
process.StartInfo = new ProcessStartInfo(Configuration.DataDirectory + "Tesseract" + Path.DirectorySeparatorChar + "tesseract.exe");
process.StartInfo.Arguments = "\"" + tempTiffFileName + "\" \"" + tempTextFileName + "\" -l " + language;
process.StartInfo.WorkingDirectory = (Configuration.BaseDirectory + "Tesseract");
process.StartInfo.WorkingDirectory = (Configuration.DataDirectory + "Tesseract");
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit(2000);
@ -1221,7 +1221,7 @@ namespace Nikse.SubtitleEdit.Forms
private void InitializeTesseract()
{
string dir = Configuration.BaseDirectory + "Tesseract\\tessdata";
string dir = Configuration.DataDirectory + "Tesseract" + Path.DirectorySeparatorChar + "tessdata";
if (Directory.Exists(dir))
{
var list = new List<string>();