| Index: experimental/webtry/webtry.go
|
| diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go
|
| index e644d138a71a26c3409e825d8706538e9fc8ffcc..9f7b47ebbfd6c31f5cf2edbd2bcae9a1379c2575 100644
|
| --- a/experimental/webtry/webtry.go
|
| +++ b/experimental/webtry/webtry.go
|
| @@ -139,12 +139,13 @@ func init() {
|
| rand.Seed(time.Now().UnixNano())
|
|
|
| // Change the current working directory to the directory of the executable.
|
| - var err error
|
| cwd, err := filepath.Abs(filepath.Dir(os.Args[0]))
|
| if err != nil {
|
| log.Fatal(err)
|
| }
|
| - os.Chdir(cwd)
|
| + if err := os.Chdir(cwd); err != nil {
|
| + log.Fatal(err)
|
| + }
|
|
|
| codeTemplate = template.Must(template.ParseFiles(filepath.Join(cwd, "templates/template.cpp")))
|
| gypTemplate = template.Must(template.ParseFiles(filepath.Join(cwd, "templates/template.gyp")))
|
|
|