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"
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.fromouter.space/crunchy-rocks/draw2d"
|
"git.fromouter.space/crunchy-rocks/draw2d"
|
||||||
|
@ -42,7 +43,7 @@ func unsplash_init() {
|
||||||
assert(err)
|
assert(err)
|
||||||
|
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
pics = append(pics, file.Name())
|
pics = append(pics, filepath.Join(*unsplashpath, file.Name()))
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("[unsplash] Loaded!")
|
log.Println("[unsplash] Loaded!")
|
||||||
|
|
Reference in a new issue