Moved "Tesseract" and "Icons" out of roaming profile

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@101 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-10-27 12:55:59 +00:00
parent d3ad6071a0
commit 8243a3606a
2 changed files with 11 additions and 3 deletions

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.DataDirectory + "Tesseract" + Path.DirectorySeparatorChar + "tesseract.exe");
process.StartInfo = new ProcessStartInfo(Configuration.TesseractFolder + "tesseract.exe");
process.StartInfo.Arguments = "\"" + tempTiffFileName + "\" \"" + tempTextFileName + "\" -l " + language;
process.StartInfo.WorkingDirectory = (Configuration.DataDirectory + "Tesseract");
process.StartInfo.WorkingDirectory = (Configuration.TesseractFolder);
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit(2000);

View File

@ -30,7 +30,15 @@ namespace Nikse.SubtitleEdit.Logic
{
get
{
return DataDirectory + "Icons" + Path.DirectorySeparatorChar;
return BaseDirectory + "Icons" + Path.DirectorySeparatorChar;
}
}
public static string TesseractFolder
{
get
{
return BaseDirectory + "Tesseract" + Path.DirectorySeparatorChar;
}
}