poppu-mtg / StackIt

Python script generating a column-shaped TCG decklist based on cropped captions of each card's art.
MIT License
14 stars 6 forks source link

Remove recursive imports. #44

Closed silasary closed 7 years ago

silasary commented 7 years ago

Fixed #42.

Long story short, StackIt was importing GUI, which imported Stackit.

This is a thing that generally shouldn't be done, but works as long as the import happens within a method, and not during module import.

Pyinstaller optimized all the imports to the top of the module, and broke everything.

This moves the core logic out of the Entry Point module, and fixes the problem the correct way.