wwood / finishm

genome improvement and finishing without further sequencing effort
MIT License
5 stars 2 forks source link

error when finishm script is a symlink #15

Open ctSkennerton opened 9 years ago

ctSkennerton commented 9 years ago

If you symlink the executable finishm to another location there is a load error for priner.

/home/cts/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- priner (LoadError)
    from /home/cts/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/cts/local/bin/finishm:10:in `<main>'

looks like the line above where your adding to the search path doesn't take into account symlinks

$:.unshift File.join(File.dirname(__FILE__),'..','lib')