flexi-bot/firmware/BIGTREETECH-TouchScreenFirmware/buildroot/scripts/pre_install_dependencies.py
2023-09-05 20:38:49 +02:00

10 lines
189 B
Python

import pkg_resources
Import("env")
installed = {pkg.key for pkg in pkg_resources.working_set}
if 'psutil' in installed:
pass
else:
env.Execute("$PYTHONEXE -m pip install psutil")