Ticket #57 (closed enhancement: fixed)

Opened 10 months ago

Last modified 6 months ago

Add script dir to $:

Reported by: beb Owned by:
Milestone: Keywords:
Cc:

Description

Hi _why,

For these not-so-tiny scripts which require other files in the same directory I found it handy to have

$: << File.dirname(path)

in self.load of source:trunk/lib/shoes.rb. Locally, I have it in line number 131 (for r282), that is right before checking if it's a .shy file.

Do you mind to put it into trunk? Thanks :) bb

Change History

Changed 6 months ago by why

  • status changed from new to closed
  • resolution set to fixed

I did a bit better than this. Shoes now runs in the directory of your script. So all images and scripts are relative to the script's path.

Note: See TracTickets for help on using tickets.