Closed akx closed 9 months ago
python -m scripts.dump_dummy
I don't like that because now I have to type out script names. Right now, I can just use the terminal to fill the script file name for me with tab completion. I'm lazy and I want to keep doing that.
This PR removes the
sys.path
hacks from thescripts/
. It should work as-is, but as usual when working on a library, you can alsopip install -e .
to make suresrc/spandrel
is editable and in your env's paths.You will need to run these scripts with
python -m
henceforth, though, but that's really good hygiene anyway, as you're forced to use proper imports (seefrom scripts.dump_state_dict import
instead offrom dump_state_dict import
) that don't depend on the cwd orPYTHONPATH
.It also simplifies and idiomaticizes (what a word!)
dump_state_dict
a bit – I checked that the output is the same aside from less trailing whitespaces in certain lines.