Skip to content

Commit

Permalink
Fix so loading doesn't fail w/o validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Nov 3, 2020
1 parent c6d9686 commit 536d646
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shop3/pddl/pddl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
(defparameter +fluent-updates+
'(assign increase decrease scale-up scale-down))

(defvar *validator-progname* (truename (asdf:system-relative-pathname "shop3" "../jenkins/VAL/validate")))
(defvar *validator-progname*
(let ((local-validator (asdf:system-relative-pathname "shop3" "../jenkins/VAL/validate")))
(if (probe-file local-validator)
(truename local-validator))
"validate"))

(defgeneric validator-export (domain plan stream)
(:documentation "Print a plan in a way that it can be consumed by
Expand Down

0 comments on commit 536d646

Please sign in to comment.