import fix
This commit is contained in:
parent
a6504842f2
commit
ee13db3b07
@ -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"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user