SebiAi/custom-nothing-glyph-tools

[BUG] `Install-Dependencies.bat`: Check for `requirements.txt` before executing

Closed this issue · 0 comments

Describe the bug

There are no checks if requirements.txt exists

To Reproduce

Version 1

  1. Download the Install-Dependencies.bat on its own
  2. Execute the script
  3. The scripts fails to install the python requirements without a proper error message

Version 2

  1. Download the whole repo as a zip file
  2. Execute the Install-Dependencies.bat script without unzipping
  3. The scripts fails to install the python requirements without a proper error message

Screenshot

Output of the Version 2 scenario
image

Expected behavior

Display an error message AFTER checking the windows build version if the requirements.txt can't be found:

The following file could not be found: 'requirements.txt'. Please make sure that you execute this script in the root of the custom-nothing-glyph-tools directory.

Insert logic here:
https://github.com/SebiAi/custom-nothing-glyph-tools/blob/34a9059982b338b2596ff780e2fdce17cd714dc6/Install-Dependencies.bat#L21C1-L21C1