]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/post-config.rb
chucknorris: fix loading
[user/henk/code/ruby/rbot.git] / lib / rbot / post-config.rb
index 974ebd0ed3bdb952af99c68f44388a94ca014056..1dc29103e2f6a333948a77c740951f2cdb36c985 100644 (file)
@@ -1,8 +1,9 @@
 # write out our datadir so we can reference it at runtime
-File.open('rbotconfig.rb', "w") {|f|
+File.open("pkgconfig.rb", "w") {|f|
   f.puts "module Irc"
-  f.puts "  module Config"
-  f.puts "    DATADIR = '#{config('datadir')}'"
+  f.puts "  module PKGConfig"
+  f.puts "    DATADIR = '#{config('datadir')}/rbot'"
+  f.puts "    COREDIR = '#{config('rbdir')}/rbot/core'"
   f.puts "  end"
   f.puts "end"
 }