Remove going up one dir in Get Project Root
This commit is contained in:
8
fs.go
8
fs.go
@@ -31,11 +31,11 @@ func GetProjectRoot() (string, error) {
|
|||||||
|
|
||||||
exeDir := filepath.Dir(exePath)
|
exeDir := filepath.Dir(exePath)
|
||||||
|
|
||||||
// adjust depending on your structure
|
// // adjust depending on your structure
|
||||||
// e.g. binary is in /project/bin/app → go up one level
|
// // e.g. binary is in /project/bin/app → go up one level
|
||||||
root := filepath.Dir(exeDir)
|
// root := filepath.Dir(exeDir)
|
||||||
|
|
||||||
return root, nil
|
return exeDir, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user