From 2b937007da2afbcf2f548a82ca1b540e03d46846 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 20 Oct 2015 20:24:21 -0700 Subject: [PATCH] fix path creation so it works on windows License: MIT Signed-off-by: Jeromy --- assets/assets.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/assets.go b/assets/assets.go index d233641e9..4965b0f5a 100644 --- a/assets/assets.go +++ b/assets/assets.go @@ -16,12 +16,12 @@ import ( // initDocPaths lists the paths for the docs we want to seed during --init var initDocPaths = []string{ - "init-doc/about", - "init-doc/readme", - "init-doc/help", - "init-doc/contact", - "init-doc/security-notes", - "init-doc/quick-start", + filepath.Join("init-doc", "about"), + filepath.Join("init-doc", "readme"), + filepath.Join("init-doc", "help"), + filepath.Join("init-doc", "contact"), + filepath.Join("init-doc", "security-notes"), + filepath.Join("init-doc", "quick-start"), } // SeedInitDocs adds the list of embedded init documentation to the passed node, pins it and returns the root key @@ -30,8 +30,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) { } var initDirIndex = []string{ - "../vendor/dir-index-html-v1.0.0/knownIcons.txt", - "../vendor/dir-index-html-v1.0.0/dir-index.html", + filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "knownIcons.txt"), + filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "dir-index.html"), } func SeedInitDirIndex(nd *core.IpfsNode) (*key.Key, error) {