Skip to content

Commit

Permalink
setup load path for running scripts against local repo
Browse files Browse the repository at this point in the history
  fix for movitto#3
  • Loading branch information
movitto committed Apr 10, 2011
1 parent cd6bfcc commit 1d097de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion bin/rxsd_test
Expand Up @@ -6,7 +6,12 @@
# Copyright (C) 2010 Mohammed Morsi <movitto@yahoo.com> # Copyright (C) 2010 Mohammed Morsi <movitto@yahoo.com>
# See COPYING for the License of this software # See COPYING for the License of this software


require 'rxsd' begin
require 'rxsd'
rescue LoadError
$: << File.join(File.dirname(File.expand_path(__FILE__)), '..', 'lib')
require 'rxsd'
end


if ARGV.size < 2 if ARGV.size < 2
puts "missing required arguments" puts "missing required arguments"
Expand Down
8 changes: 7 additions & 1 deletion bin/xsd_to_ruby
Expand Up @@ -7,7 +7,13 @@
# See COPYING for the License of this software # See COPYING for the License of this software


require 'fileutils' require 'fileutils'
require 'rxsd'
begin
require 'rxsd'
rescue LoadError
$: << File.join(File.dirname(File.expand_path(__FILE__)), '..', 'lib')
require 'rxsd'
end


if ARGV.size < 2 if ARGV.size < 2
puts "missing required arguments" puts "missing required arguments"
Expand Down

0 comments on commit 1d097de

Please sign in to comment.