From 1bce8e08eaf03ff9e64bb9aab4db13e38dc55bd3 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 20 Feb 2014 14:37:08 +0100 Subject: [PATCH] handle files without path --- lib/tilt/pdf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tilt/pdf.rb b/lib/tilt/pdf.rb index 1baf58c..c65943f 100644 --- a/lib/tilt/pdf.rb +++ b/lib/tilt/pdf.rb @@ -31,7 +31,7 @@ module Tilt end def dirname - eval_file.gsub(/#{basename}$/, '').chomp('/') + File.dirname(eval_file) end def find_html