Compare commits

..

No commits in common. "24e6a293b0ef3d84224f5e7bd87c27b9ae6eed77" and "9fb611aa20cc8da7fe38ca93e8845409592f4fd1" have entirely different histories.

2 changed files with 1 additions and 15 deletions

View File

@ -15,7 +15,6 @@ const (
ParamStart = "start"
ParamEnd = "end"
ParamValue = "value"
ParamName = "name"
ParamEllipsis = "..."
ParamFilepath = "filepath"
ParamDirpath = "dirpath"

View File

@ -6,9 +6,7 @@ package expr
import (
"fmt"
"os"
"plugin"
"strings"
)
var pluginRegister map[string]*plugin.Plugin
@ -27,17 +25,6 @@ func pluginExists(name string) (exists bool) {
return
}
func makePluginName(name string) (decorated string) {
var template string
if execName, err := os.Executable(); err != nil || !strings.HasSuffix(execName, ".debug") {
template = "expr-%s-plugin.so"
} else {
template = "expr-%s-plugin.so.debug"
}
decorated = fmt.Sprintf(template, name)
return
}
func importPlugin( /*ctx ExprContext,*/ dirList []string, name string) (err error) {
var filePath string
var p *plugin.Plugin
@ -46,7 +33,7 @@ func importPlugin( /*ctx ExprContext,*/ dirList []string, name string) (err erro
var importFunc func(ExprContext)
var ok bool
decoratedName := makePluginName(name)
decoratedName := fmt.Sprintf("expr-%s-plugin.so", name)
if filePath, err = makeFilepath(decoratedName, dirList); err != nil {
return