Top Level Namespace
Defined Under Namespace
Modules: OIS, Ogre Classes: Array, Object, ShatteredOgre, Symbol, SymbolToVectorError
Instance Method Summary collapse
-
#add_dll_paths(*directories) ⇒ Object
adds dll search paths.
Instance Method Details
#add_dll_paths(*directories) ⇒ Object
adds dll search paths
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/shattered_ogrerb.rb', line 3 def add_dll_paths(*directories) directories.each do |dir| absolute_path = File.(File.dirname(__FILE__)+"/../vendor/#{dir}/") #TODO: This might be a ruby version issue instead of a platform issue # but in Mac PATH is capitalized unless Platform.mac? ENV["path"] += ";#{absolute_path};" else ENV["PATH"] += ";#{absolute_path};" end $:.unshift(absolute_path) end end |