X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=bin%2Fwhatever-dl;h=9a6b8c3e23eabe2b02624fe5a38539b3de340d74;hb=c292aca3372339f92ea6fa8fa563ffed7f4fd19c;hp=79cbbee15afb9785a5f2ff5085b94392894dcdbb;hpb=683a3d565af34bd0fc63c659e8647707d466d7d9;p=dead%2Fwhatever-dl.git diff --git a/bin/whatever-dl b/bin/whatever-dl index 79cbbee..9a6b8c3 100755 --- a/bin/whatever-dl +++ b/bin/whatever-dl @@ -1,4 +1,4 @@ -#!/usr/bin/ruby -w +#!/usr/bin/ruby -wKU # # whatever-dl, a script to download online (web-based) videos. # @@ -36,9 +36,14 @@ $: << File.dirname(executable) + '/../' require 'src/uri_utilities' +# The Dir.glob that's coming up doesn't use the +# Ruby library path so we need to tell it where to +# look explicitly. +websites_pattern = File.dirname(executable) + '/../src/websites/*.rb' + # All of the website classes are located in one # directory, so we can 'require' them automatically. -Dir.glob('src/websites/*.rb').each do |r| +Dir.glob(websites_pattern).each do |r| require r end