Skip to content
This repository
Browse code

Added bin_path and plugin_path

  • Loading branch information...
commit 5769b3cd04d00ce3c709b522a6fa937d2506a173 1 parent 7291f5b
exvion authored February 08, 2011
4  su2yafaray/YafarayExport.rb
@@ -19,7 +19,9 @@ def reset
19 19
 
20 20
 
21 21
 def initialize(yi)
22  
-	yi.loadPlugins('')
  22
+	plugins_path=File.join(File.dirname(__FILE__),'bin','plugins')
  23
+	p plugins_path
  24
+	yi.loadPlugins(plugins_path)
23 25
 	yi.startScene(0)
24 26
 	yi.setInputGamma(1, true)
25 27
 end	
7  su2yafaray/su2yafaray.rb
@@ -53,16 +53,17 @@ def SU2YAFARAY.get_yafaray_path_from_registry
53 53
 end
54 54
  
55 55
 $:.push(File.join(File.dirname(__FILE__)))  #add the su2yafaray folder to the ruby library search list
  56
+$:.push(File.join(File.dirname(__FILE__),'bin'))
56 57
 require 'sketchup.rb'
57 58
 unless SU2YAFARAY.on_mac?
58 59
 	require 'Win32API'
59 60
 	require 'registry'
60 61
 end
61 62
 
62  
- 
63  
- path=SU2YAFARAY.get_yafaray_path_from_registry
  63
+#path=SU2YAFARAY.get_yafaray_path_from_registry
  64
+path=File.join(File.dirname(__FILE__),'bin')
64 65
 
65  
- LoadLibrary = Win32API.new("kernel32","LoadLibrary",["P"],"I")
  66
+LoadLibrary = Win32API.new("kernel32","LoadLibrary",["P"],"I")
66 67
  
67 68
  mingw=false
68 69
  if not mingw
BIN  su2yafaray/yafqt.so
Binary file not shown
BIN  su2yafaray/yafrayinterface.so
Binary file not shown

0 notes on commit 5769b3c

Please sign in to comment.
Something went wrong with that request. Please try again.