fix: use PICOCLAW_HOME for plugins directory
This commit is contained in:
parent
57d137b0c5
commit
9aba03e92c
1 changed files with 1 additions and 2 deletions
|
|
@ -75,8 +75,7 @@ Examples:
|
||||||
picoclaw plugins service status # Run 'service' plugin with 'status'`
|
picoclaw plugins service status # Run 'service' plugin with 'status'`
|
||||||
|
|
||||||
func getPluginsDir() string {
|
func getPluginsDir() string {
|
||||||
home, _ := os.UserHomeDir()
|
return filepath.Join(internal.GetPicoclawHome(), pluginsDirName)
|
||||||
return filepath.Join(home, ".picoclaw", pluginsDirName)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func listPlugins() ([]string, error) {
|
func listPlugins() ([]string, error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue