Jari Williamsson
11/19/2007 9:37:00 AM
Pat Kiatchaipipat wrote:
> I can't do it, I use
>
> require 'rubyscript2exe'
> $pic = RUBYSCRIPT2EXE.appdir + '/t.jpg'
> picturebox2_img = Image.new($pic)
Why do you use $ in front of a local variable? AFAIK, that's reserved
for system use.
> where t.jpg is in the same directory with .rb file and when I run with
> ruby It works but when I convert to exe, and move to different directory
> it doesn't work :'(
Try to include the jpg file by setting RUBYSCRIPT2EXE.lib, as explained
by the docs.
Best regards,
Jari Williamsson