[MacRuby] #163: macruby_main forces a relative path
#163: macruby_main forces a relative path ----------------------------------+----------------------------------------- Reporter: jjoonathan@gmail.com | Owner: lsansonetti@apple.com Type: enhancement | Status: new Priority: minor | Milestone: MacRuby 0.4 Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Sometimes it makes sense to load a script from a path external to the main bundle (say, inside an input manager or something), but macruby_main automatically prepends the main bundle's resource path, making the use of absolute paths (via ../../ etc) extremely hackish. My proposed solution is also hackish, but it works. Simply check to see if the path starts with a "/" and don't prepend the resource folder path if that's the case. '''objc.m:2819''' s/&p1[2]/(path[0] != '/') ? &p1[2] : "" -- Ticket URL: <http://www.macruby.org/trac/ticket/163> MacRuby <http://macruby.org/>
#163: macruby_main forces a relative path ----------------------------------+----------------------------------------- Reporter: jjoonathan@… | Owner: lsansonetti@… Type: enhancement | Status: closed Priority: minor | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Thanks for the patch. I agree that the solution is hackish but we can probably live with it for now. I will make sure this will be correctly documented. I committed it as r760, thanks! -- Ticket URL: <http://www.macruby.org/trac/ticket/163#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby