refactor: rename debugtalk_gen.py to .debugtalk_gen.py

This commit is contained in:
debugtalk
2022-05-29 00:50:20 +08:00
parent da608db9bb
commit 3d17bcecdf
11 changed files with 90 additions and 16 deletions

View File

@@ -15,11 +15,11 @@ import (
)
const (
goPluginFile = "debugtalk.so" // built from go plugin
hashicorpGoPluginFile = "debugtalk.bin" // built from hashicorp go plugin
hashicorpPyPluginFile = "debugtalk_gen.py" // used for hashicorp python plugin, automatically generated by HRP
debugtalkPyFile = "debugtalk.py" // write by user
projectInfoFile = "proj.json" // used for ensuring root project
goPluginFile = "debugtalk.so" // built from go plugin
hashicorpGoPluginFile = "debugtalk.bin" // built from hashicorp go plugin
hashicorpPyPluginFile = ".debugtalk_gen.py" // used for hashicorp python plugin, automatically generated by HRP
debugtalkPyFile = "debugtalk.py" // write by user
projectInfoFile = "proj.json" // used for ensuring root project
)
func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, pluginDir string, err error) {
@@ -73,7 +73,6 @@ func locatePlugin(path string) (pluginPath string, err error) {
pluginPath, err = locateFile(path, debugtalkPyFile)
if err == nil {
// convert debugtalk.py to debugtalk_gen.py
// register funppy plugin
genPyPluginPath := filepath.Join(filepath.Dir(pluginPath), hashicorpPyPluginFile)
err = build.Run(pluginPath, genPyPluginPath)