Fix for unsplash pic paths
This commit is contained in:
parent
9cd2a8bf2b
commit
66b7d37028
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
"log"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"git.fromouter.space/crunchy-rocks/draw2d"
|
||||
|
@ -42,7 +43,7 @@ func unsplash_init() {
|
|||
assert(err)
|
||||
|
||||
for _, file := range files {
|
||||
pics = append(pics, file.Name())
|
||||
pics = append(pics, filepath.Join(*unsplashpath, file.Name()))
|
||||
}
|
||||
|
||||
log.Println("[unsplash] Loaded!")
|
||||
|
|
Reference in a new issue