1
1

checkpics.bat 533 B

1234567891011121314151617181920212223242526
  1. @echo off
  2. set "$py=0"
  3. call:construct
  4. for /f "delims=" %%a in ('python #.py ^| findstr "2"') do set "$py=2"
  5. for /f "delims=" %%a in ('python #.py ^| findstr "3"') do set "$py=3"
  6. del #.py
  7. goto:%$py%
  8. echo python is not installed or python's path Path is not in the %%$path%% env. var
  9. exit/b
  10. :2
  11. python tools/check_images2.py > missing_pictures.txt
  12. exit/b
  13. :3
  14. python tools/check_images3.py > missing_pictures.txt
  15. exit/b
  16. :construct
  17. echo import sys; print('{0[0]}.{0[1]}'.format(sys.version_info^)^) >#.py