-
How can I include a clj file inside another folder in babashka? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
borkdude
May 31, 2021
Replies: 2 comments
-
You can do this in two ways:
You can set the classpath by making a
or by using or by using the Also see http://book.babashka.org. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
borkdude
-
Thanks a lot Michiel! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do this in two ways:
(load-file "the-file.clj")
/path/to
to the classpath and then use(require 'otherfile)
You can set the classpath by making a
bb.edn
file that looks like:or by using
(babashka.classpath/add-classpath "path/to")
or by using the
--classpath
CLI argument.Also see http://book.babashka.org.