I had a similar problem, with the solution being to set the current
directory in the .rb file. Check out this thread for more info...

http://stackoverflow.com/questions/757455/relative-file-paths

On Sat, Apr 25, 2009 at 9:52 AM, Morgan Prior <[email protected]>wrote:

> Hi,
>
> I have written a small example at [1] which writes out a yaml config
> file on a button press and when reloading the app the  text fields
> take the values stored in the yaml file. The app works fine when in an
> text file but fails to write and load the yaml file when in a packaged
> format (.shy, .app, .exe).
>
> As I am relatively new to ruby and shoes I am not sure if it is a bug
> or I am doing some thing wrong, which just happens to work before it
> is packaged.
>
> NB: when making code changes I have to quit shoes and reload shoes to
> see the modified app run. If you do not close app and quit shoes on OS
> X (for me at least) before relaunching it might appear that the .shy
> etc is remembering values but this is just the cached version of the
> application.
>
> [1] http://github.com/munkymorgy/shoesexamples/tree/master
>
> To checkout the repository you can do:
> $ git clone git://github.com/munkymorgy/shoesexamples.git
>
> Setup:
> Mac OS X 10.5.6 (also tested on windows xp)
> Shoes Rasins
> ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
>
> Thanks in advance
> Morgan
>

Reply via email to