1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-07 13:28:03 +00:00

Use function for install-paths

This commit is contained in:
Michael Camilleri
2020-06-18 19:07:43 +09:00
parent 4077822e37
commit 536648ec19
2 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@
(def- replace-peg
(peg/compile
~(% (* '(to "###START###")
(constant ,(string/format "# Inserted by tools/patch-jpm.janet\n(def install-paths %j)" install-paths))
(constant ,(string/format "# Inserted by tools/patch-jpm.janet\n(defn- install-paths [] %j)" install-paths))
(thru "###END###")
'(any 1)))))