From fb281cd820e0bd6ab8456fd0ccf585312dc5c057 Mon Sep 17 00:00:00 2001 From: Simon Jefford Date: Thu, 15 May 2014 14:36:42 +0100 Subject: [PATCH] fix demoDirectory on windows --- configuration/demo_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/demo_config.go b/configuration/demo_config.go index 9c06e3a15..a782f4c0a 100644 --- a/configuration/demo_config.go +++ b/configuration/demo_config.go @@ -1,8 +1,8 @@ package configuration import ( - "fmt" "os" + "path/filepath" ) func Demo() (c Config, err error) { @@ -23,6 +23,6 @@ func demoDirectory() (dir string, err error) { if err != nil { return } - dir = fmt.Sprintf("%s/exercism-demo", dir) + dir = filepath.Join(dir, "exercism-demo") return }