roflbalt icon indicating copy to clipboard operation
roflbalt copied to clipboard

symlink doesn't work with require path, use pathname to fix

Open mxmilkiib opened this issue 10 years ago • 0 comments

I use symlinks to add executables in git directories to my ~/bin. Unfortunately this breaks roflblat, but I fixed it by swapping out the existing require with;

require "pathname"
require File.join(File.dirname(Pathname.new(__FILE__).realpath), "../lib/roflbalt.rb")

Thanks for the game btw!

mxmilkiib avatar Jan 20 '16 04:01 mxmilkiib