[Bug]: If there is just one file in the scripts directory it will be shown in the dropdown, but will not get loaded.
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Man, this ate hours of debugging until I figured out what is happening. Fried that brain good.
If there is just one file in the scripts directory it will be shown in the dropdown, but will not get loaded. Not sure what is happening there, but that's just how it is. If there is at least another .py file with the class Script(scripts.Script): inside then it works.
Steps to reproduce the problem
Remove all scripts but one from the script folder. Re/Start UI. Click the script dropdown. Select the script name. Observe how nothing gets shown/happens. No error messages, nothing. Just 0 reaction.
What should have happened?
One script should work.
Commit where the problem happens
7ba3923d5b494b7756d0b12f33acb3716d830b9a
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
No response
Additional information, context and logs
No response
I would like to bump this, because it is still the case. If scripts folder has < 2 .py files then it does not work. Have a feeling it may be related to some other weird behavior here as well.
Closing as stale.