Skip to content

Commit

Permalink
Update BuildTTC.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiWonder committed Jul 4, 2023
1 parent 48e6f91 commit 32543d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/BuildTTC/BuildTTC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ private void ButtonOK_Click(object sender, EventArgs e)
if (System.IO.File.Exists(path + "python/python.exe") && System.IO.File.Exists(path + "otf2otc.py"))
{
exefl = path + "python/python.exe";
args += " " + path + "otf2otc.py";
args += " \"" + path + "otf2otc.py\"";
isgetexe = true;
}
else if (IsInPATH("python.exe") && System.IO.File.Exists(path + "otf2otc.py"))
{
exefl = "python";
args += " " + path + "otf2otc.py";
args += " \"" + path + "otf2otc.py\"";
isgetexe = true;
}
else if (IsInPATH("otf2otc.exe"))
Expand All @@ -70,10 +70,10 @@ private void ButtonOK_Click(object sender, EventArgs e)
MessageBox.Show(this, "未找到 otf2otc 程序!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
args += $" -o {textBox1.Text}";
args += $" -o \"{textBox1.Text}\"";
foreach (var item in listBox.Items)
{
args += " " + item;
args += " \"" + item + "\"";
}
tableLayoutPanel1.Enabled = false;
Cursor = Cursors.WaitCursor;
Expand Down

0 comments on commit 32543d3

Please sign in to comment.