File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
16
16
var cacheDir = "/tmp/gobyexample-cache"
17
17
var siteDir = "./public"
18
- var pygmentizeBin = ""
18
+ var pygmentizeBin = "./vendor/pygments/pygmentize "
19
19
20
20
func check (err error ) {
21
21
if err != nil {
@@ -106,12 +106,6 @@ func whichLexer(path string) string {
106
106
return ""
107
107
}
108
108
109
- func whichPygmentize () {
110
- bin , err := exec .LookPath ("pygmentize" )
111
- check (err )
112
- pygmentizeBin = bin
113
- }
114
-
115
109
func debug (msg string ) {
116
110
if os .Getenv ("DEBUG" ) == "1" {
117
111
fmt .Fprintln (os .Stderr , msg )
@@ -245,7 +239,6 @@ func renderExamples(examples []*Example) {
245
239
}
246
240
247
241
func main () {
248
- whichPygmentize ()
249
242
copyFile ("templates/site.css" , siteDir + "/site.css" )
250
243
copyFile ("templates/favicon.ico" , siteDir + "/favicon.ico" )
251
244
copyFile ("templates/404.html" , siteDir + "/404.html" )
You can’t perform that action at this time.
0 commit comments