generated from jCloud/repository-template
Error when there are a Python package and module with the same name #54
Notifications
Total Time Spent: 29 minutes
jakob.scheid
29 minutes
No due date set.
Dependencies
No dependencies set.
Reference: jCloud/jcloud-docsgen#54
Reference in new issue
Block a user
If there are a Python module and package with the same name in the same directory, such as
module.pyandmodule/, ajcloud_docsgen.exceptions.NamespaceExistsErroroccurs.Expected behavior
As a module takes precedence over a package, the package namespace should not tried to be added, which would prevent from raising this error. This is also the way Python does it in: importing
modulewhen there aremodule.pyandmodule/importsmodule.py