changed import conventions for plugin names: expr-<scoped-name>; scoped-name = <scope>-<name>
This commit is contained in:
+7
-6
@@ -89,16 +89,17 @@ func searchAmongPath(filename string, dirList []string) (filePath string) {
|
||||
if dir, err = util.ExpandPath(dir); err != nil {
|
||||
continue
|
||||
}
|
||||
if fullPath := path.Join(dir, filename); isFile(fullPath) {
|
||||
fullPath := path.Join(dir, filename)
|
||||
if isFile(fullPath) {
|
||||
filePath = fullPath
|
||||
break
|
||||
}
|
||||
|
||||
subdir := strings.TrimSuffix(filename, suffix)
|
||||
if fullPath := path.Join(dir, subdir, filename); isFile(fullPath) {
|
||||
filePath = fullPath
|
||||
break
|
||||
}
|
||||
// subdir := strings.TrimSuffix(filename, suffix)
|
||||
// if fullPath := path.Join(dir, subdir, filename); isFile(fullPath) {
|
||||
// filePath = fullPath
|
||||
// break
|
||||
// }
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user