import fix

This commit is contained in:
Darius 2024-05-09 23:20:52 +02:00
parent a6504842f2
commit ee13db3b07

View File

@ -4,7 +4,6 @@ import (
"bufio" "bufio"
"encoding/json" "encoding/json"
"flag" "flag"
"fmt"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"os" "os"
@ -22,7 +21,7 @@ var BasePath string
func InitNotify() types.Params { func InitNotify() types.Params {
BaseFilePath, _ := os.Executable() BaseFilePath, _ := os.Executable()
BaseDirPath := path.Dir(BaseFilePath) BaseDirPath := path.Dir(BaseFilePath)
log.OpenLogFile(BaseDirPath) log.OpenLogFile(BaseDirPath)
err := godotenv.Load(path.Join(BaseDirPath, "../../etc/.env")) err := godotenv.Load(path.Join(BaseDirPath, "../../etc/.env"))