Commit 825ed8b6 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 802b502e
...@@ -31,9 +31,11 @@ import ( ...@@ -31,9 +31,11 @@ import (
"io" "io"
"os" "os"
"os/exec" "os/exec"
"path/filepath"
"regexp" "regexp"
"strings" "strings"
"lab.nexedi.com/kirr/go123/my"
"lab.nexedi.com/kirr/go123/xerr" "lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/zodb" "lab.nexedi.com/kirr/neo/go/zodb"
) )
...@@ -73,7 +75,7 @@ func StartTreeGenSrv(argv ...string) (_ *TreeGenSrv, hello string, err error) { ...@@ -73,7 +75,7 @@ func StartTreeGenSrv(argv ...string) (_ *TreeGenSrv, hello string, err error) {
// spawn `treegen ...` // spawn `treegen ...`
tg := &TreeGenSrv{argv: argv} tg := &TreeGenSrv{argv: argv}
tg.pysrv = exec.Command("./testprog/treegen.py", argv...) tg.pysrv = exec.Command(filepath.Dir(my.File())+"/treegen.py", argv...)
tg.pyin, err = tg.pysrv.StdinPipe() tg.pyin, err = tg.pysrv.StdinPipe()
if err != nil { if err != nil {
return nil, "", err return nil, "", err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment