mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 05:49:40 +08:00
refactor: rename debugtalk_gen.py to .debugtalk_gen.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user