fix(path): force linux style path for .Location

resolves #5125
This commit is contained in:
Jan De Dobbeleer 2024-06-20 12:21:36 +02:00 committed by Jan De Dobbeleer
parent b809944f5c
commit 9f2c6d1df5

View file

@ -109,7 +109,7 @@ func (pt *Path) Enabled() bool {
pt.setStyle()
pwd := pt.env.Pwd()
pt.Location = pt.env.TemplateCache().AbsolutePWD
pt.Location = strings.ReplaceAll(pt.env.TemplateCache().AbsolutePWD, `\`, `/`)
pt.StackCount = pt.env.StackCount()
pt.Writable = pt.env.DirIsWritable(pwd)
return true