mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 20:22:41 +01:00
Fix for roaming profile
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@88 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
d6da3f5664
commit
45bfc670b8
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user