A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ksonnet/ksonnet/commit/0d09d4a5096cb9f0d72523c42886cf0ad2b0e5cd below:

Add environment path to jpath for relative imports · ksonnet/ksonnet@0d09d4a · GitHub

This repository was archived by the owner on Sep 9, 2020. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+6

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-0

lines changed Original file line number Diff line number Diff line change

@@ -99,6 +99,11 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)

99 99

return "", err

100 100

}

101 101 102 +

appEnv, err := a.Environment(envName)

103 +

if err != nil {

104 +

return "", err

105 +

}

106 + 102 107

snippet, err := MainFile(a, envName)

103 108

if err != nil {

104 109

return "", err

@@ -108,6 +113,7 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)

108 113

vm.AddJPath(componentJPaths...)

109 114

vm.AddJPath(

110 115

filepath.Join(a.Root(), envRootName),

116 +

filepath.Join(a.Root(), envRootName, appEnv.Path),

111 117

filepath.Join(a.Root(), "vendor"),

112 118

libPath,

113 119

)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4