cmd/ebitenmobile: Handle os.Setenv error

Updates #1666
This commit is contained in:
Hajime Hoshi 2021-06-09 21:33:20 +09:00
parent 269a79408f
commit 9cf30d9b70

View File

@ -81,7 +81,9 @@ func prepareGomobileCommands() error {
fmt.Printf("PATH=%s\n", newpath) fmt.Printf("PATH=%s\n", newpath)
} }
if !buildN { if !buildN {
os.Setenv("PATH", newpath) if err := os.Setenv("PATH", newpath); err != nil {
return err
}
} }
pwd, err := os.Getwd() pwd, err := os.Getwd()