pioutil.py 370 B

123456789101112131415
  1. #
  2. # pioutil.py
  3. #
  4. from SCons.Script import DefaultEnvironment
  5. env = DefaultEnvironment()
  6. # Make sure 'vscode init' is not the current command
  7. def is_pio_build():
  8. if "IsCleanTarget" in dir(env) and env.IsCleanTarget(): return False
  9. return not env.IsIntegrationDump()
  10. def get_pio_version():
  11. from platformio import util
  12. return util.pioversion_to_intstr()