summaryrefslogtreecommitdiff
path: root/scripts/context/ruby/texsync.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/ruby/texsync.rb')
-rw-r--r--scripts/context/ruby/texsync.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/context/ruby/texsync.rb b/scripts/context/ruby/texsync.rb
index 22b7d46c0..ade307d8e 100644
--- a/scripts/context/ruby/texsync.rb
+++ b/scripts/context/ruby/texsync.rb
@@ -16,10 +16,7 @@
banner = ['TeXSync', 'version 1.1.1', '2002/2004', 'PRAGMA ADE/POD']
-unless defined? ownpath
- ownpath = $0.sub(/[\\\/]\w*?\.rb/i,'')
- $: << ownpath
-end
+$: << File.expand_path(File.dirname($0)) ; $: << File.join($:.last,'lib') ; $:.uniq!
require 'base/switch'
require 'base/logger'