Исправление ошибки с запуском внешних программ.
This commit is contained in:
@@ -136,7 +136,7 @@ proc Tools::CommandPathSettings {command} {
|
|||||||
DebugPuts [catch {exec {*}$cmd} toolsPath]
|
DebugPuts [catch {exec {*}$cmd} toolsPath]
|
||||||
DebugPuts "executor_path $toolsPath"
|
DebugPuts "executor_path $toolsPath"
|
||||||
if {[catch {exec {*}$cmd} toolsPath]} {
|
if {[catch {exec {*}$cmd} toolsPath]} {
|
||||||
DebugPuts "Программа $command не найдена в системе"
|
DebugPuts "Tools::CommandPathSettings: Программа $command не найдена в системе"
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
set fullPath [string trim $toolsPath]
|
set fullPath [string trim $toolsPath]
|
||||||
@@ -165,7 +165,12 @@ proc Tools::Execute {toolName} {
|
|||||||
set fullPathToExec [Tools::CommandPathSettings "$cmd"]
|
set fullPathToExec [Tools::CommandPathSettings "$cmd"]
|
||||||
set fullCommand [lreplace [split $command " "] 0 0 $fullPathToExec]
|
set fullCommand [lreplace [split $command " "] 0 0 $fullPathToExec]
|
||||||
}
|
}
|
||||||
|
if {$fullPathToExec eq ""} {
|
||||||
|
DebugPuts "Tools::Execute: $command not found"
|
||||||
|
return
|
||||||
|
} else {
|
||||||
DebugPuts "Tools::Execute: $fullPathToExec, $fullCommand"
|
DebugPuts "Tools::Execute: $fullPathToExec, $fullCommand"
|
||||||
|
}
|
||||||
# 2. Определять выделен ли текст в открытом редакторе
|
# 2. Определять выделен ли текст в открытом редакторе
|
||||||
# 5. Заменяем %s на выделенный в редакторе текст
|
# 5. Заменяем %s на выделенный в редакторе текст
|
||||||
set selectedText [Editor::SelectionGet]
|
set selectedText [Editor::SelectionGet]
|
||||||
|
|||||||
Reference in New Issue
Block a user