From: Jim Freeze Date: 2005-09-14T04:48:31+09:00 Subject: Launch directory in Rake Hi I have a directory of projects and in the directory above that, I would like to put a Rakefile that manages tasks on those projects. The problem is that I cannot obtain the directory from with rake is run. What I want is the following: projects/ Rakefile commandline/ pkg/ commandline.gem quiz42/ project_xyz.../ cd commandline rake gem Inside the gem file is a task: task :gem do sh "gem build pkg/*gem" end The problem is that the pwd is 'projects/', not 'projects/commandline'. Also, I cannot tell that there is a way to know that the rake command was run from 'projects/commandline'. If a way exists, I would be happy to hear about it. If not, can we add a @launch_dir (or @run_dir) to #load_rakefile? Thanks -- Jim Freeze