views:

27

answers:

0

Hi there,

I created a Shoes application that reads some data from a YAML file on APP_PATH/data folder.

The application works so well that I decided to package and send to a friend.

I created an Windows executable with Shoes inside. When I run the executable, the relative path ./data does not point to the data folder inside the executable path. Instead it points to a temp location where (I guess) my ruby program is unpacked when I run the exe package.

Does anybody know a way that I could, from inside of my Ruby shoes script, get the path for the executable package ('application.exe')?

Is there something like FILE for the ruby shoe package??

Thanks in advance