diff options
author | chainhelen <chainhelen@gmail.com> | 2018-06-11 21:08:22 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 15:08:22 +0200 |
commit | 1e5b25091ce634d180129a0b156aa24a7e9a5327 (patch) | |
tree | 7ab7ab2c1ed5b7ffdd8e884c9e5f0149f594c24e /deno_dir.go | |
parent | 0132a4d11ddb7d933527c4da146a41c181f4b234 (diff) |
Use path.Join instead of + (#143)
Towards windows support.
Diffstat (limited to 'deno_dir.go')
-rw-r--r-- | deno_dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deno_dir.go b/deno_dir.go index 2df1f74b4..1fac10831 100644 --- a/deno_dir.go +++ b/deno_dir.go @@ -87,7 +87,7 @@ func LoadOutputCodeCache(filename string, sourceCodeBuf []byte) ( func UserHomeDir() string { if runtime.GOOS == "windows" { - home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH") + home := path.Join(os.Getenv("HOMEDRIVE"), os.Getenv("HOMEPATH")) if home == "" { home = os.Getenv("USERPROFILE") } |