sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

LoadFile error=2 #104

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm on mac When I try to use LoadFile on a build I get "error to load FILENAME file, error=2". Files are on the same path as the executable. It works when running go run example.go but not when running go build ¿Am I using this wrong? ¿Do I need to embbed files to the binary?

pravic commented 6 years ago

Apparently it's a problem with paths. Examples are trying to load html from their current directory.

In general there are several ways to avoid that:

ghost commented 6 years ago

Program tries to get example.html from my user folder so I have to use absolute path. Thanks!

pravic commented 6 years ago

You are welcome.