X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fpost-config.rb;h=1dc29103e2f6a333948a77c740951f2cdb36c985;hb=95fab091ab9e2b42a6e8cfda72b231ef06971e39;hp=974ebd0ed3bdb952af99c68f44388a94ca014056;hpb=39b8ac0ed06c32aa72142acda04a27b8404f5560;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/post-config.rb b/lib/rbot/post-config.rb index 974ebd0e..1dc29103 100644 --- a/lib/rbot/post-config.rb +++ b/lib/rbot/post-config.rb @@ -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" }