ryoakg
11/6/2017 - 1:31 PM

code-source.clj

;;; via: https://qiita.com/msakamoto_sf/items/ad49242157d8a58ab110

(-> java.net.URL
    .getProtectionDomain
    .getCodeSource
    ;; .getLocation
    ;; .getFile
    )
;; => nil

(-> clojure.lang.PersistentVector
    .getProtectionDomain
    .getCodeSource
    .getLocation
    .getFile
    )
;; => "/home/a/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar"