Permalink
Browse files

Change how the pathname is received in haste-client

  • Loading branch information...
1 parent cf4c274 commit 636eec29243a06e3143340bc20f5d3318ac5908e @seejohnrun committed Jan 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/haste
View
4 bin/haste
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
-require File.dirname(__FILE__) + '/../lib/haste'
+require 'pathname'
+path = Pathname.new(__FILE__)
+require File.expand_path(File.dirname(path.realpath) + '/../lib/haste')
cli = Haste::CLI.new
cli.start

0 comments on commit 636eec2

Please sign in to comment.