Closed GijsTimmers closed 8 years ago
I'll probably create a new branch to make the necessary changes before merging them into dev
: restructured_init
I agree this would be a lot cleaner and more readable :+1:
:-)
Fixed. 5e3123cead2dc020f1fec4840a2f98b4e0d0411e
Current situation:
There have been some problems packaging the application: some modules can't be found, etc.
We've seen this problem before. For example, the communicators in the
communicator/
directory have to importcursor.hide()
from thetools/
directory. The current situation works, but is far from unified, and still gives problems every now and then.I'd like to propose to import the importable classes to
__init__.py
instead. If we do so, the directory name__init__.py
resides in becomes a package to easily import stuff from, like an API. Another advantage is that we can explicitly say what should be imported and what not.IIUC, that would give us code like:
which is a lot cleaner IMO.