From: "Mauricio Fernández" Date: 2004-08-28T02:46:07+09:00 Subject: Re: package glade files On Sat, Aug 28, 2004 at 01:45:57AM +0900, Roeland Moors wrote: > I my own source I put the glade files in a seperate dir. > If I put them in the lib dir, I would have to type more before I > can use tab completion to open the file. > I know, I'm very lazy :-) > > It would make sence to put it in share/ if it was used by > multiple programs, but that probably will not happen. It's not about sharing between programs, but rather about filesystem standards and platform-independent files... > > The only problem is finding the files at runtime. Before RubyGems, it > > was safe to access them via > > require 'rbconfig' > > File.join(::Config::CONFIG["datadir"], "myappname", subdir) > > > > If you're using RubyGems, you have to require 'rubygems', determine the > > 'gemdir' and the subdirectory you need. > > > > And for RPA? rpa-base installs normally into $prefix so you can access it the normal way, i.e. through require 'rbconfig' Config::CONFIG["datadir"] You can also get the dir. in the RPA namespace but it's better to use rbconfig because that way your app. is not tied to RPA/rpa-base. > * Creating a dh_ruby* helper which rake can use? This would take a bit longer since it has to follow the 'official' Debian path; but I've seen references to it in #debian-ruby... -- Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com