change to normal folder seek

This commit is contained in:
2026-05-22 19:18:50 +03:00
parent d28a4f02f9
commit 6bd886f4ee
3 changed files with 42 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ func joinOutput(outputs ...string) string {
}
func readAppModule(app, module string) AppModule {
path := filepath.Join(".", "config", app, module)
path := filepath.Join(configFolder(), app, module)
name := module
check := "SCRIPT"
configPath := filepath.Join(path, "config.yml")
@@ -73,7 +73,7 @@ func readAppModule(app, module string) AppModule {
func readApplication(folderName string) Application {
name := folderName
appFolder := filepath.Join(".", "config", folderName)
appFolder := filepath.Join(configFolder(), folderName)
configPath := filepath.Join(appFolder, "config.yml")
if fileExists(configPath) {
configF, err := os.ReadFile(configPath)
@@ -100,7 +100,7 @@ func readApplication(folderName string) Application {
}
func listApplications() []Application {
entries, err := os.ReadDir("./config")
entries, err := os.ReadDir(configFolder())
if err != nil {
log.Fatalln(err)
}