mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
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:
parent
d3ad6071a0
commit
8243a3606a
@ -956,9 +956,9 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
string tempTextFileName = Path.GetTempPath() + Guid.NewGuid().ToString();
|
string tempTextFileName = Path.GetTempPath() + Guid.NewGuid().ToString();
|
||||||
|
|
||||||
Process process = new Process();
|
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.Arguments = "\"" + tempTiffFileName + "\" \"" + tempTextFileName + "\" -l " + language;
|
||||||
process.StartInfo.WorkingDirectory = (Configuration.DataDirectory + "Tesseract");
|
process.StartInfo.WorkingDirectory = (Configuration.TesseractFolder);
|
||||||
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
|
||||||
process.Start();
|
process.Start();
|
||||||
process.WaitForExit(2000);
|
process.WaitForExit(2000);
|
||||||
|
@ -30,7 +30,15 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return DataDirectory + "Icons" + Path.DirectorySeparatorChar;
|
return BaseDirectory + "Icons" + Path.DirectorySeparatorChar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string TesseractFolder
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return BaseDirectory + "Tesseract" + Path.DirectorySeparatorChar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user