get running as global script working
This commit is contained in:
parent
589e48304f
commit
e2258daafa
3 changed files with 17 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
|||
(ns cli-cms.config)
|
||||
(ns cli-cms.config
|
||||
(:require
|
||||
[babashka.fs :as fs]
|
||||
[clojure.string :as str]))
|
||||
|
||||
(def config (read-string (slurp "config.edn")))
|
||||
(def config
|
||||
(let [project-root (str/join "/" (drop-last 3 (fs/components *file*)))
|
||||
config-file-path (format "/%s/config.edn" project-root)]
|
||||
(read-string (slurp config-file-path))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue