Permalink
Browse files

Added bin_path and plugin_path

  • Loading branch information...
1 parent 7291f5b commit 5769b3cd04d00ce3c709b522a6fa937d2506a173 @exvion committed Feb 7, 2011
@@ -19,7 +19,9 @@ def reset
def initialize(yi)
- yi.loadPlugins('')
+ plugins_path=File.join(File.dirname(__FILE__),'bin','plugins')
+ p plugins_path
+ yi.loadPlugins(plugins_path)
yi.startScene(0)
yi.setInputGamma(1, true)
end
View
@@ -53,16 +53,17 @@ def SU2YAFARAY.get_yafaray_path_from_registry
end
$:.push(File.join(File.dirname(__FILE__))) #add the su2yafaray folder to the ruby library search list
+$:.push(File.join(File.dirname(__FILE__),'bin'))
require 'sketchup.rb'
unless SU2YAFARAY.on_mac?
require 'Win32API'
require 'registry'
end
-
- path=SU2YAFARAY.get_yafaray_path_from_registry
+#path=SU2YAFARAY.get_yafaray_path_from_registry
+path=File.join(File.dirname(__FILE__),'bin')
- LoadLibrary = Win32API.new("kernel32","LoadLibrary",["P"],"I")
+LoadLibrary = Win32API.new("kernel32","LoadLibrary",["P"],"I")
mingw=false
if not mingw
View
Binary file not shown.
Binary file not shown.

0 comments on commit 5769b3c

Please sign in to comment.