]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
I take that last commit back. Now the relative include path issue is fixed. The previ...
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 21 Nov 2008 22:01:32 +0000 (17:01 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 21 Nov 2008 22:01:32 +0000 (17:01 -0500)
bin/whatever-dl

index 79cbbee15afb9785a5f2ff5085b94392894dcdbb..99183f6f2ac26e8513339001d21718f5decf9b0c 100755 (executable)
@@ -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