Quote:
Originally Posted by KevinH
Understood and agreed. Do you know of a way to officially make any import of compatibility_utils and unipath give a Deprecation warning of some sort so new plugins do not use them during the interim?
|
I might be able to rig up an import hook to add a deprecation warning, but using sys.path_hooks and sys.meta_path to intercept/substitute/augment/deny module/package imports got overly complicated in Python 3 in my opinion (not to mention that there's several function deprecations between python 3.4 and 3.6 ). It might be easier (and certainly less complicated) to "patch" the builtins __import__ function in the plugin framework to add a warning whenever importing anything from compatibility_utils. I can look into it if you like.