We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3fc9db commit 1a8ee20Copy full SHA for 1a8ee20
2 files changed
etc/jython-2.5.1.jar
-20.2 MB
src/clojure_python/core.clj
@@ -10,7 +10,7 @@
10
"this may later take keywords and initialize other things
11
for now it is just used to specify python library paths"
12
([libpath]
13
- (doto clojure-python.core/*interp*
+ (doto clojure-python.core/interp
14
(.exec "import sys")
15
(.exec (str "sys.path.append('" libpath "')"))))
16
([libpath & more]
@@ -24,8 +24,8 @@
24
and the others are objects to import from this library"
25
([] nil)
26
([lib] ; import a library
27
- `(do (. clojure-python.core/*interp* exec (str "import " ~(name lib)))
28
- (def ~lib (. (. (. clojure-python.core/*interp* getLocals)
+ `(do (. clojure-python.core/interp exec (str "import " ~(name lib)))
+ (def ~lib (. (. (. clojure-python.core/interp getLocals)
29
__getitem__ ~(name lib))
30
__dict__))
31
(print ~lib)))
0 commit comments