Skip to content

Commit

Permalink
Default #:python-executable to "python.exe" on Windows; closes greghe…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff66ruan authored and greghendershott committed Jun 23, 2019
1 parent 2ffd73f commit e6b02c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion example/frog.rkt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#lang frog/config

;; Called early when Frog launches. Use this to set parameters defined
Expand All @@ -13,7 +14,9 @@
(-> (listof xexpr/c) (listof xexpr/c))
;; Here we pass the xexprs through a series of functions.
(~> xs
(syntax-highlight #:python-executable "python"
(syntax-highlight #:python-executable (if (eq? (system-type) 'windows)
"python.exe"
"python")
#:line-numbers? #t
#:css-class "source")
(auto-embed-tweets #:parents? #t)
Expand Down
4 changes: 3 additions & 1 deletion frog/enhance-body.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

(define/doc (syntax-highlight
[x-expressions (listof xexpr/c)]
[#:python-executable python-executable path-string? "python"]
[#:python-executable python-executable path-string? (if (eq? (system-type) 'windows)
"python.exe"
"python")]
[#:line-numbers? line-numbers? boolean? #t]
[#:css-class css-class string? "source"]
(listof xexpr/c))
Expand Down

0 comments on commit e6b02c5

Please sign in to comment.