We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f57221 commit 1032d44Copy full SHA for 1032d44
src/libpython_clj2/codegen.clj
@@ -151,7 +151,9 @@ user> (doto (python/list)
151
exclude default-exclude}}]
152
(let [metadata-fn (requiring-resolve
153
'libpython-clj2.metadata/datafy-module-or-class)
154
- ns-symbol (or ns-symbol (symbol (str ns-prefix "." py-mod-or-cls)))]
+ ns-symbol (or ns-symbol (symbol (str (when-not (s/blank? ns-prefix)
155
+ (str ns-prefix "."))
156
+ py-mod-or-cls)))]
157
(py/with-gil-stack-rc-context
158
(let [target (py/path->py-obj py-mod-or-cls)
159
target-metadata (metadata-fn target)
0 commit comments