movitto / RXSD

XSD / Ruby Translator
http://projects.morsi.org/RXSD
GNU Lesser General Public License v3.0
85 stars 35 forks source link

Gem needs to be installed for scripts to run in cloned repository. #3

Closed preston closed 13 years ago

preston commented 13 years ago

Here's a fix for both scripts:

current_dir = File.dirname(File.expand_path(__FILE__))
lib_path = File.join(current_dir, '..', 'lib')
$LOAD_PATH.unshift lib_path

require 'rxsd'
movitto commented 13 years ago

Hey thanks alot for this bug report. Add the lib dir to the load path as you suggested

https://github.com/movitto/RXSD/commit/1d097de9983712c08588ce729397fb458163e4fe