v1.0.1
This commit is contained in:
3
main.go
3
main.go
@@ -15,7 +15,6 @@ import (
|
||||
|
||||
"github.com/dhowden/tag"
|
||||
"github.com/joho/godotenv"
|
||||
// _ "github.com/joho/godotenv/autoload"
|
||||
)
|
||||
|
||||
type DownloadDirectoryComplete struct {
|
||||
@@ -48,7 +47,7 @@ func mainErr() error {
|
||||
return errors.New("missing data argument")
|
||||
}
|
||||
|
||||
if err := godotenv.Load(); err != nil {
|
||||
if err := godotenv.Load(path.Join(os.Args[0], "music-rename.env")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user