__path__ of a package is treated as iterable, whose elements are search paths of submodules.
The assignment here seems to not have any effect and could cause trouble during the importing. It could be [os.path.dirname(__file__)], but that's still the default value of the value.
__path__
of a package is treated as iterable, whose elements are search paths of submodules.The assignment here seems to not have any effect and could cause trouble during the importing. It could be
[os.path.dirname(__file__)]
, but that's still the default value of the value.https://docs.python.org/3/reference/import.html#module-path