Skip to content

Instantly share code, notes, and snippets.

@souenzzo
Last active April 12, 2019 22:51
Show Gist options
  • Save souenzzo/e67571042d10f94a2b70840566ad9e13 to your computer and use it in GitHub Desktop.
Save souenzzo/e67571042d10f94a2b70840566ad9e13 to your computer and use it in GitHub Desktop.
(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