Imported getLastScriptRepeatCount directly from scriptHandler, and simplified calls since this is a frequently called function in globalCommands.py (#19821)
Summary of the issue:
In globalCommands.py, there were 25 calls (to date) to scriptHandler.getLastScriptRepeatCount().
The only other element imported from scriptHandler, was the script decorator, and that was already imported directly.
Because I was about to add some more calls to getLastScriptRepeatCount in other work, I decided to try importing that directly as well.
Additionally, I was testing building via CI, and needed some work to test with.
Description of user facing changes:
None
Description of developer facing changes:
Existing calls in globalCommands.py to scriptHandler.getLastScriptRepeatCount(), are now just calls to getLastScriptRepeatCount().