You are browsing as a guest. Sign up (or log in) to start making projects!

3h 3m 49s logged

Goodness gracious it is 3am…
I’ve made some more good progress on the script, including (amongst tidying up as well, of course), implementing a function that creates a new config file if it can’t locate one, a function that automatically downloads the correct hand landmarker model so it doesn’t need to be bundled into the directory by default, a better json loader function, support for absolute paths (which will become incredibly important when I ship this because relative paths can be hit or miss), an improved automatic selection tool to choose what framework should be used, and more.
I also changed how constants work: instead of being loaded one-by-one right before they’re needed within their functions, they’re all loaded in the setup phase as soon as the config file is resolved, and declared as global variables. This helped reduce a lot of redundancy in assigning variables.
In terms of bugfixes, I fixed a loading order error in which the program attempted to access config values before they were assigned to constants, a couple import errors (these were my fault somehow I managed to put import statements within an if statement), added a new error exception for when the config file is malformed, fixed a small read-write permissions error, and solved an initial issue I had with ydotool (whenever I would send a keystroke it would close the “shell” it was running in before the unpress command went through, and the keys would be permanently stuck with no way to reopen the shell to undo it. The only shortcut this affects now is closing a window intentionally, though I don’t think that’ll be a problem when it’s running minimized.)

0
4

Comments 0

No comments yet. Be the first!