File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313 *interp*)
1414
1515(defn init
16- " Establish a global python interpreter. it is intended to only be called
17- once. Alternatively, only use with-interpreter."
16+ " Establish a global python interpreter.
17+ The init function is only usefully called once.
18+ Alternatively, only use with-interpreter."
1819 [{:keys [libpaths] :as options}]
1920 (defonce ^:dynamic
2021 ^{:doc " root binding serves as global python interpreter" }
2122 *interp*
2223 (org.python.util.PythonInterpreter. ))
23- (append-paths! libpaths))
24+ (append-paths libpaths))
2425
2526(defmacro with-interpreter
2627 " Dynamically bind a new python interpreter for the calling context."
2728 [{:keys [libpaths] :as options} & body]
2829 `(binding [*interp* (org.python.util.PythonInterpreter. )]
29- (append-paths! ~libpaths)
30+ (append-paths ~libpaths)
3031 ~@body))
3132
3233(defmacro py-import
You can’t perform that action at this time.
0 commit comments