diff --git a/docs/helpers/configenvextractor.go b/docs/helpers/configenvextractor.go index 3f08ca0ce..d7afd5295 100644 --- a/docs/helpers/configenvextractor.go +++ b/docs/helpers/configenvextractor.go @@ -56,8 +56,9 @@ func GenerateIntermediateCode(templatePath string, intermediateCodePath string, func RunIntermediateCode(intermediateCodePath string) { fmt.Println("Running intermediate go code for " + intermediateCodePath) - os.Setenv("OCIS_BASE_DATA_PATH", "~/.ocis") - os.Setenv("OCIS_CONFIG_DIR", "~/.ocis/config") + defaultPath := "~/.ocis" + os.Setenv("OCIS_BASE_DATA_PATH", defaultPath) + os.Setenv("OCIS_CONFIG_DIR", path.Join(defaultPath, "config")) out, err := exec.Command("go", "run", intermediateCodePath).Output() if err != nil { log.Fatal(err)