3
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
5
# See LICENSE.txt for permissions.
11
# Only define datadir if it doesn't already exist.
12
unless Config.respond_to?(:datadir)
14
# Return the path to the data directory associated with the given
15
# package name. Normally this is just
16
# "#{Config::CONFIG['datadir']}/#{package_name}", but may be
17
# modified by packages like RubyGems to handle versioned data
19
def Config.datadir(package_name)
20
File.join(CONFIG['datadir'], package_name)