Unverified Commit dcebde9c authored by Bryan Liles's avatar Bryan Liles Committed by GitHub
Browse files

Merge pull request #494 from bryanl/add-env-path-to-jpath

Add environment path to jpath for relative imports
parents 02d5f89f 0d09d4a5
......@@ -99,6 +99,11 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)
return "", err
}
appEnv, err := a.Environment(envName)
if err != nil {
return "", err
}
snippet, err := MainFile(a, envName)
if err != nil {
return "", err
......@@ -108,6 +113,7 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)
vm.AddJPath(componentJPaths...)
vm.AddJPath(
filepath.Join(a.Root(), envRootName),
filepath.Join(a.Root(), envRootName, appEnv.Path),
filepath.Join(a.Root(), "vendor"),
libPath,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment