Skip to content

Commit a5f80ca

Browse files
committed
Merge pull request #233 from documentcloud/bin_root
Use relative binary path for jammit on the command-line
2 parents ef53145 + 8ea37fb commit a5f80ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/jammit

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env ruby -rrubygems
2+
require 'pathname'
23

3-
require "#{File.dirname(__FILE__)}/../lib/jammit/command_line.rb"
4+
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
5+
jammit_cl = File.join(APP_ROOT,'../lib/jammit/command_line.rb')
6+
require "#{jammit_cl}"
47

58
Jammit::CommandLine.new

0 commit comments

Comments
 (0)