Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > 0271f6fcd99d4bca8f0d7913e1cc3cdd > files > 2

xchat-ruby-1.2-2mdv2010.0.src.rpm

--- src/xchat-ruby-plugin.rb.orig	2003-09-20 18:37:52.000000000 +0200
+++ src/xchat-ruby-plugin.rb	2003-09-20 18:39:59.000000000 +0200
@@ -423,6 +423,16 @@
             $LOAD_PATH.push line
           end
         end
+      rescue
+      end
+      envfile = "/usr/lib/xchat/plugins/rubyenv"
+      begin
+        File.open( envfile, "r" ) do |file|
+          file.each do |line|
+            line.chomp!
+            $LOAD_PATH.push line
+          end
+        end
       rescue Exception => detail
         puts "The ruby environment file '#{envfile}' could not be found."
         puts "Ruby modules will not be able to access any extension modules."