diff --git a/bin/platformio-custom.py b/bin/platformio-custom.py index 1443f6d4..d4117b4b 100644 --- a/bin/platformio-custom.py +++ b/bin/platformio-custom.py @@ -8,6 +8,10 @@ from readprops import readProps Import("env") env.Replace( MKSPIFFSTOOL=env.get("PROJECT_DIR") + '/bin/mklittlefs.py' ) +try: + import littlefs +except ImportError: + env.Execute("$PYTHONEXE -m pip install --user littlefs-python") Import("projenv")