sciter-sdk / go-sciter

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

LoadFile shall use absolute paths #199

Closed c-smile closed 5 years ago

c-smile commented 5 years ago

https://github.com/sciter-sdk/go-sciter/blob/e932564b0bc29be6eb2e49b00f31dc633258156c/examples/demoes/02/demo2.go#L30

In order the sample to work reliably, this:

w.LoadFile("demo2.html") 

shall use absolute path rather than relative (relative to what exactly?)

oskca commented 5 years ago

Yes, it should be