Fork me on GitHub
#joker
<
2019-06-14
>
hairfire16:06:37

New to Joker, been doing Clojure for a couple of years.

hairfire16:06:08

A couple of questions: (1) Any "built-in" way to translate '~' to "HOME" in file paths?, and (2) How to write scripts that pull in other scripts (i.e. In :require [myscript.stuff :as stuff] where do I pult the file, what is its name?). Thanks!

Candid04:06:26

1) Something like (joker.string/replace "~/test" "~" (get (joker.os/env) "HOME")) should do the trick.

Candid04:06:18

2) Please see https://github.com/candid82/joker/pull/139#issuecomment-449878510 for the explanation (I need to move it to docs)