From 89dc4f174b1184367f1a14b8238cef17fd09e878 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sun, 27 Mar 2022 10:27:23 +0300 Subject: fix #4: make relative require work when setting fennel.macro-path --- init.fnl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'init.fnl') diff --git a/init.fnl b/init.fnl index 7dd1696..0ef4e48 100644 --- a/init.fnl +++ b/init.fnl @@ -54,7 +54,10 @@ non-ASCII strings."}) (import-macros {: defn : into : empty : when-let : if-let : when-some : if-some} - (if (and ... (not= ... :init)) (.. ... :.init-macros) :init-macros)) + ;; tricky relative require to make it work from + ;; anywhere as (require :cljlib) and as well + ;; (import-macros cljm :cljlib) + (if ... (if (= ... :init) :init-macros ...) :init-macros)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Utility functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -- cgit v1.2.3