get path more direct

This commit is contained in:
jem 2020-01-16 12:58:36 +01:00
parent 7eedc3ef16
commit 579193f735

View file

@ -78,7 +78,7 @@
(s/defn path-from-cp ; :- JavaPath
[resource-path :- ShortPath]
(try
(let [path-from-cp (Paths/get (java.net.URI. (.toString (io/resource resource-path))))]
(let [path-from-cp (Paths/get (.toURI (io/resource resource-path)))]
(when (Files/exists path-from-cp NoLinkOption)
path-from-cp))
(catch Exception e