joker 2019-06-14

@hairfire has joined the channel

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

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!

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

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