Permalink
Browse files

actually fixing the path

  • Loading branch information...
1 parent 76ca677 commit 0be769763e561366d785b6df5228165bf5f7e693 @runemadsen committed Mar 20, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/p5/sketch.rb
View
@@ -9,10 +9,16 @@ def initialize(sketch_folder, output_folder = nil)
def run
Headless.ly do
- `#{File.dirname(__FILE__)}/bin/processing/processing-java --sketch=#{@sketch_folder} --output=#{@output_folder} --force --run`
+ `#{gem_root}/bin/processing/processing-java --sketch=#{@sketch_folder} --output=#{@output_folder} --force --run`
end
end
+ private
+
+ def gem_root
+ File.expand_path '../../..', __FILE__
+ end
+
end
end

0 comments on commit 0be7697

Please sign in to comment.