Skip to content

Instantly share code, notes, and snippets.

@samaaron
Created October 24, 2012 18:58
Show Gist options
  • Save samaaron/3948099 to your computer and use it in GitHub Desktop.
Save samaaron/3948099 to your computer and use it in GitHub Desktop.
(ns native-path.fix
(:require [leiningen.core.eval :as lein-ev]))
(defonce __FIX-NATIVE-PATH__
(let [lib-path (System/getProperty "java.library.path")
native-dir (lein-ev/native-arch-path {:native-path "target/native"})
new-path (str lib-path ":" native-dir)]
(System/setProperty "java.library.path" new-path)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment