mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 19:59:37 -06:00
construct OCIS_BASE_DATA_PATH and OCIS_CONFIG_DIR from one base path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user