summaryrefslogtreecommitdiff
path: root/scripts/context/ruby/pdftools.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/ruby/pdftools.rb')
-rw-r--r--scripts/context/ruby/pdftools.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/context/ruby/pdftools.rb b/scripts/context/ruby/pdftools.rb
index 8a62a0487..d40e2d852 100644
--- a/scripts/context/ruby/pdftools.rb
+++ b/scripts/context/ruby/pdftools.rb
@@ -15,10 +15,7 @@
banner = ['PDFTools', 'version 1.2.1', '2003/2005', 'PRAGMA ADE/POD']
-unless defined? ownpath
- ownpath = $0.sub(/[\\\/][a-z0-9\-]*?\.rb/i,'')
- $: << ownpath
-end
+$: << File.expand_path(File.dirname($0)) ; $: << File.join($:.last,'lib') ; $:.uniq!
require 'base/switch'
require 'base/logger'