On Fri, Apr 4, 2014 at 2:27 PM, Pekka Enberg <notifications@github.com>wrote:

> In cmd/run.go:
>
> > @@ -138,7 +138,13 @@ func Run(repo *capstan.Repo, config *RunConfig) error {
> >  		if format != image.VMDK {
> >  			return fmt.Errorf("%s: image format of %s is not supported, unable to run it.", config.Hypervisor, path)
> >  		}
> > -		dir := filepath.Join(os.Getenv("HOME"), ".capstan/instances/vmw", id)
> > +		var homepath string
> > +		if runtime.GOOS == "windows" {
> > +			homepath = filepath.Join(os.Getenv("HOMEDRIVE"), os.Getenv("HOMEPATH"))
> > +		} else {
> > +			homepath = os.Getenv("HOME")
> > +		}
>
> This deserves a helper function, I think. Not a requirement for this pull
> request, though.
>

Right. We have other places using this. Let's clean it up later.


> —
> Reply to this email directly or view it on GitHub<https://github.com/cloudius-systems/capstan/pull/54/files#r11284205>
> .
>



-- 
Asias