path variable skope fix

This commit is contained in:
vadym 2022-12-07 21:13:38 +02:00
parent 1e0794761b
commit 6d596cba72
3 changed files with 4 additions and 2 deletions

View file

@ -20,8 +20,6 @@ import (
"github.com/RiV-chain/RiV-mesh/src/admin"
)
var riv_ctrl_path string
func main() {
debug := true
w := webview.New(debug)

View file

@ -7,6 +7,8 @@ import (
"os/exec"
)
var riv_ctrl_path string
func run_command(command string) []byte {
args := []string{"-json", command}
cmd := exec.Command(riv_ctrl_path, args...)

View file

@ -8,6 +8,8 @@ import (
//"syscall"
)
var riv_ctrl_path string
func run_command(command string) []byte {
args := []string{"-json", command}
cmd := exec.Command(riv_ctrl_path, args...)