Smarter detection of PREFIX -- Windows does C:\CloudStack

This commit is contained in:
Manuel Amador (Rudd-O) 2010-09-01 16:46:23 -07:00
parent ce60139666
commit 6490451eec
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ conf.check_message_2(conf.env.DISTRO,c)
conf.check_message_1('Detecting installation prefix')
if conf.env.PREFIX == '/usr/local':
if conf.env.DISTRO == 'Windows':
conf.env.PREFIX = '/CloudStack'
conf.env.PREFIX = 'C:\\CloudStack'
elif _getuid() != 0: # not root
conf.env.PREFIX = _join(_expanduser("~"),"cloudstack")
conf.check_message_2("%s"%conf.env.PREFIX,"GREEN")