Re: import multiprocessing in module level

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/import-multiprocessing-in-module-level-tp3356p3358.html

Hello,

The import is deliberately put inside the method, in order to import multiprocessing only if needed (= only if a huge ontology is loaded), and inside a try... block (multiprocessing may not be available on some platform).

Nevertheless, I think you can still monkey patch multiprocessing before importing owlready2: just import multiprocessing before owlready2 and modify the multiprocessing module?

Jiba