diff options
Diffstat (limited to 'Master/texmf-dist/scripts/context/ruby/texsync.rb')
-rw-r--r-- | Master/texmf-dist/scripts/context/ruby/texsync.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/context/ruby/texsync.rb b/Master/texmf-dist/scripts/context/ruby/texsync.rb index 22b7d46c0fe..ade307d8ef2 100644 --- a/Master/texmf-dist/scripts/context/ruby/texsync.rb +++ b/Master/texmf-dist/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' |