genenetwork / genenetwork2

GeneNetwork (2nd generation)
http://gn2.genenetwork.org/
GNU Affero General Public License v3.0
34 stars 24 forks source link

Create new entry-point module to reduce chances of circular imports. #793

Closed fredmanglis closed 1 year ago

fredmanglis commented 1 year ago

This commit creates a new entry-point module (wqflask/gn2_main.py) and imports all the other modules that import the application object with something like:

`from wqflask import app`

This breaks the subtle circular-import cycle that tends to cause a lot of inconveniences when developing the application.