#692: Embedded MacRuby still tries to use ruby library from /Library/Frameworks --------------------------------+------------------------------------------- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: --------------------------------+-------------------------------------------
Comment(by lsansone...@…): As recommended in the tutorial, the following lines can be added in rb_main.rb: {{{ $:.map! { |x| x.sub(/^\/Library\/Frameworks/, NSBundle.mainBundle.privateFrameworksPath) } $:.unshift NSBundle.mainBundle.resourcePath.fileSystemRepresentation }}} However, as you say, it makes sense for MacRuby to set up its load path relative to where MacRuby.framework was loaded. We will address that problem. Just to be sure, we are talking about Ruby files here? In theory all binary files should be re-linked to point to the copy of MacRuby.framework inside the .app. -- Ticket URL: <http://www.macruby.org/trac/ticket/692#comment:1> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel