def _getRubyLoadPath(self, macros, rubyInvocation, bootstrap):
        # Returns tuple of (invocationString, loadPathList)
        destdir = macros.destdir
        if bootstrap:
            rubyLibPath = [destdir + x for x in self.bootstrapRubyLibs]
            rubyInvocation = (('LD_LIBRARY_PATH=%(destdir)s%(libdir)s '
                               'RUBYLIB="'+':'.join(rubyLibPath)+'" '
                               +rubyInvocation)%macros)
        rubyLoadPath = util.popen(
            "%s -e 'puts $:'" %
            rubyInvocation).readlines()
        # get gem dir if rubygems is installed
        if os.access('%(bindir)s/gem' %macros, os.X_OK):
            rubyLoadPath.extend(
                util.popen("%s -rubygems -e 'puts Gem.default_dir'" %
                        rubyInvocation).readlines())
        rubyLoadPath = [ x.strip() for x in rubyLoadPath if x.startswith('/') ]
        loadPathList = rubyLoadPath[:]
        if bootstrap:
            rubyLoadPath = [ destdir+x for x in rubyLoadPath ]
            rubyInvocation = ('LD_LIBRARY_PATH=%(destdir)s%(libdir)s'
                    ' RUBYLIB="'+':'.join(rubyLoadPath)+'"'
                    ' %(destdir)s/%(ruby)s') % macros
        return (rubyInvocation, loadPathList)