Debug file now uses the SetupPath function to store the debug file in the config file
Trying to run SetupPath in the DB module causes an import cycle, so I made a hacky workaround, giving OpenDB an array of strings as an arg to make it optional. Since it's a singleton that gets created in main.go, this should be fine.
Both these changes should allow the program to be run from anywhere, without creating debug and database files where it was called from.
OpenDB
an array of strings as an arg to make it optional. Since it's a singleton that gets created inmain.go
, this should be fine.Both these changes should allow the program to be run from anywhere, without creating debug and database files where it was called from.