origamiimaster / pdhrec

PDHREC is a Magic: the Gathering website that collates data about the Pauper Commander format.
https://pdhrec.com
MIT License
4 stars 0 forks source link

Import Statements and Modules #16

Open origamiimaster opened 1 year ago

origamiimaster commented 1 year ago

Running the generate_frontend.py script works as is. However, development is made more difficult because running python files in the backend folder does not work, due to the import issue described in https://stackoverflow.com/questions/16981921/relative-imports-in-python-3.

A few possible hacked fixes are suggested, but none seem really feasible.

Another potential fix is to move all the files to the same directory level, as this makes it easier.

Alternatively, the suggestion from Guido's email says that needing to run the python modules as scripts is an antipattern, so perhaps we should just find a way to test everything without it.