mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
windows下路径问题
This commit is contained in:
parent
a353b6d69a
commit
3b0dd10302
@ -967,7 +967,7 @@ func getPackagePath(curpath string) (packpath string) {
|
||||
for _, wg := range wgopath {
|
||||
wg, _ = filepath.EvalSymlinks(path.Join(wg, "src"))
|
||||
|
||||
if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
|
||||
if strings.HasPrefix(strings.ToLower(strings.Replace(curpath, "/", "\\", -1)), strings.ToLower(wg)) {
|
||||
haspath = true
|
||||
appsrcpath = wg
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user