SebiAi / custom-nothing-glyph-tools

A repo containing scripts and tools for creating custom Nothing Glyph compositions.
GNU General Public License v3.0
248 stars 18 forks source link

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

Closed SebiAi closed 1 year ago

SebiAi commented 1 year ago

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