Skip to content

Commit

Permalink
windows home is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
wrzfeijianshen committed Dec 23, 2018
1 parent 6518eb4 commit e91de41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion cmd/go-rcc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ func main() {
}

func transformMember(line string) {

home := os.Getenv("HOME")
line = strings.Replace(line, home, "/home/me", -1)
if home != "" {
line = strings.Replace(line, home, "/home/me", -1)
}
cp.APf("body", line)
}

Expand Down
4 changes: 2 additions & 2 deletions examples/eg00.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package main
#include <stdint.h>
*/
import "C"
import "qtcore"
import "github.com/kitech/qt.go/qtcore"
import "fmt"
import "reflect"
import "time"
import "qtrt"
import "github.com/kitech/qt.go/qtrt"

func testResolve(args ...interface{}) {
var vtys = make(map[int32]map[int32]reflect.Type)
Expand Down

0 comments on commit e91de41

Please sign in to comment.