From: Jari Williamsson Date: 2007-11-19T18:36:38+09:00 Subject: Re: "rubyscript2exe", cannot put picture in the project??? 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