So, I've been digging around the Shoes source in an attempt to find
out if I can get a handle on the file path from within a shoes app.
Unfortunately, when Shoes goes to start up a file, it assigns the path
to a local variable, reads and evals the file, and then forgets all
about where it came from. Amnesia in Shoes! Here's a suggestion.
When you load an application into Shoes, please set a Constant, or, if
you prefer, an @@class_variable to the app's path. And then in our app
we could do this:
Shoes::APP_PATH
or
Shoes.path_to_app
And that would be tremendously helpful. And we could all load in
static content that's living in the same folder as the .rb or .shy app.
For your consideration,
— Jeremy