Skip to content

Commit

Permalink
Get godot location from GODOT environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Nov 30, 2024
1 parent e01d660 commit 437380e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-main.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
(error 'assertion-error "ERROR~%# (assert-equals ~a ~a)~%## ~a~%`~a`~%## ~a~%`~a`" lq rq lq l' rq r')))))

(define (godot scene)
(system (format #f "godot --path demo ~a --headless --quit" scene) #t))
(let ((program (or (getenv "GODOT") "godot")))
(system (format #f "~a --path demo ~a --headless --quit" program scene) #t)))

(define (read-file path)
(call-with-input-file path
Expand Down

0 comments on commit 437380e

Please sign in to comment.