From 211adff0b060023fe0c91e1950d80d3a36d61868 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 12 Feb 2020 21:04:55 +0100 Subject: Fixed code that used the wrong path manipulation module --- spool/load.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spool/load.go') diff --git a/spool/load.go b/spool/load.go index 282fdc6..5b08bda 100644 --- a/spool/load.go +++ b/spool/load.go @@ -7,7 +7,7 @@ import ( "fmt" "log" "os" - "path" + "path/filepath" "strconv" ) @@ -15,7 +15,7 @@ import ( func (s *Spool) Load(c *config.Config) (err error) { s.config = c // We read the spool - file, err := os.Open(path.Join(c.WorkDir(), spoolFile)) + file, err := os.Open(filepath.Join(c.WorkDir(), spoolFile)) if err != nil { return fmt.Errorf("Couldn't open spool file, starting from scratch: %s", err) } -- cgit v1.2.3