From 579193f735affef2a222fb7111da8a4f7f9f55c6 Mon Sep 17 00:00:00 2001 From: jem Date: Thu, 16 Jan 2020 12:58:36 +0100 Subject: [PATCH] get path more direct --- src/cryogen_core/classpath_able_io.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryogen_core/classpath_able_io.clj b/src/cryogen_core/classpath_able_io.clj index 1eaa598..139c10d 100644 --- a/src/cryogen_core/classpath_able_io.clj +++ b/src/cryogen_core/classpath_able_io.clj @@ -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