Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(ns nondeps.core)
(defn -main
[target]
(let [f @#'clojure.core/load
paths (atom [])]
(with-redefs [clojure.core/load (fn [& path]
(swap! paths concat path)
(apply f path))]
(require (symbol target))
(prn (mapv identity #_ clojure.java.io/resource @paths)
(System/getProperty "java.class.path")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.