mrghg / agage-archive

Code for producing AGAGE archival files
MIT License
3 stars 0 forks source link

Circular dependence of util.setup and Paths #11

Closed joe-pitt closed 7 months ago

joe-pitt commented 11 months ago

To generate a config file, you need to run setup from util.py. util.py calls Paths() on L9, which in turn requires a config file, otherwise it raises a FileNotFoundError (L69) This circular dependence currently prevents a config file from being written.

mrghg commented 10 months ago

There's a quick fix for this in there now (the setup script has this_repo = True, in the call to Paths, which prevents it looking for the config file), but we should probably come up with a better solution at some point, but I think this will work for now.

mrghg commented 7 months ago

Should probably do this one at the same time as issue #21

mrghg commented 7 months ago

Decided this workaround is probably fine for now. Closing.