Make litex a namespace.
authorTim 'mithro' Ansell <me@mith.ro>
Sun, 23 Feb 2020 22:56:51 +0000 (14:56 -0800)
committerTim 'mithro' Ansell <me@mith.ro>
Sun, 12 Apr 2020 01:37:06 +0000 (18:37 -0700)
litex/__init__.py

index ca1e6d75bf2c5de0c466f78dbf7688faafae424f..2454c0e796903000ed4b649386925770139b5baf 100644 (file)
@@ -1,3 +1,6 @@
+# https://packaging.python.org/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages
+__path__ = __import__('pkgutil').extend_path(__path__, __name__)
+
 import sys
 
 # retro-compat 2019-09-30