signebedi / gita-api

a RESTful Bhagavad Gita API
GNU Affero General Public License v3.0
0 stars 0 forks source link

CLI fails when `__name__` is set to "gita-init" #72

Closed signebedi closed 9 months ago

signebedi commented 9 months ago

This is because our entry point is the if __name__ == "__main__": statement, which is not satisfied in its current form when setting the name to gita-init. We should consider the best long-run solution. Maybe, for example, set the name in an init.py script in the same sub-dir, or change the entrypoint to something like if __name__ == "gita-api": though this would I think risk breaking assumptions. Or, we create a setup.py script... Or, we move this to a separate repo altogether and set it up to initialize the application in toto from scratch.