Peter Bacon Darwin
bacondarwin at googlemail.com
Tue Jul 29 03:57:45 EDT 2008
Ruby 1.9 actually uses this order:
HOMEDRIVE + HOMEPATH
SHGetSpecialFolderLocation(NULL, CSIDL_PERSONAL, &pidl)
This seems reasonable. I suspect mspec needs tweaking.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Brad Wilson
Sent: Monday,28 July 28, 2008 23:18
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] $HOME
The order should be:
HOMEDRIVE + HOMEDIR
Using HOMEDIR without HOMEDRIVE (and the opposite) are bad ideas.
On Mon, Jul 28, 2008 at 6:07 AM, Peter Bacon Darwin <bacondarwin at googlemail.com> wrote:
By the way, this is how $HOME is setup in mspec (on Windows):
# Code to setup HOME directory correctly on Windows
# This duplicates Ruby 1.9 semantics for defining HOME
platform_is :windows do
ENV['HOME'] = ENV['HOME'].tr '\\', '/'
elsif ENV['HOMEDIR'] && ENV['HOMEDRIVE']
ENV['HOME'] = File.join(ENV['HOMEDRIVE'], ENV['HOMEDIR'])
ENV['HOME'] = ENV['HOMEDIR']
ENV['HOME'] = ENV['HOMEDRIVE']
ENV['HOME'] = ENV['USERPROFILE']
puts "No suitable HOME environment found. This means that all of HOME, HOMEDIR, HOMEDRIVE, and USERPROFILE are not set"
Ironruby-core mailing list
Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core