We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a7c2d commit 274ce14Copy full SHA for 274ce14
src/clojure_python/core.clj
@@ -90,19 +90,19 @@
90
(if (seq funcs)
91
(dorun (map #(import-fn module %) funcs)))))
92
93
-(defn python [name [& {:keys
+(defn python [name & {:keys
94
[pre-properties
95
post-properties
96
argv
97
sys-path
98
- modules]}]]
+ modules]}]
99
(do
100
(PythonInterpreter/initialize pre-properties post-properties argv)
101
(let [interp (PythonInterpreter.)]
102
(if (seq sys-path)
103
(init interp sys-path))
104
(loop [mods modules]
105
- (let [[m args] (first modules) k (:funcs args) o (:objs args)]
+ (let [[m args] (first mods) k (:funcs args) o (:objs args)]
106
(python-mod interp m :funcs k :objs o)
107
(recur (rest mods))))
108
interp)))
0 commit comments