mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
path variable skope fix
This commit is contained in:
parent
1e0794761b
commit
6d596cba72
3 changed files with 4 additions and 2 deletions
|
@ -20,8 +20,6 @@ import (
|
||||||
"github.com/RiV-chain/RiV-mesh/src/admin"
|
"github.com/RiV-chain/RiV-mesh/src/admin"
|
||||||
)
|
)
|
||||||
|
|
||||||
var riv_ctrl_path string
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
debug := true
|
debug := true
|
||||||
w := webview.New(debug)
|
w := webview.New(debug)
|
||||||
|
|
|
@ -7,6 +7,8 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var riv_ctrl_path string
|
||||||
|
|
||||||
func run_command(command string) []byte {
|
func run_command(command string) []byte {
|
||||||
args := []string{"-json", command}
|
args := []string{"-json", command}
|
||||||
cmd := exec.Command(riv_ctrl_path, args...)
|
cmd := exec.Command(riv_ctrl_path, args...)
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
//"syscall"
|
//"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var riv_ctrl_path string
|
||||||
|
|
||||||
func run_command(command string) []byte {
|
func run_command(command string) []byte {
|
||||||
args := []string{"-json", command}
|
args := []string{"-json", command}
|
||||||
cmd := exec.Command(riv_ctrl_path, args...)
|
cmd := exec.Command(riv_ctrl_path, args...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue