pioutil.py 377 B

1234567891011121314
  1. #
  2. # pioutil.py
  3. #
  4. # Make sure 'vscode init' is not the current command
  5. def is_pio_build():
  6. from SCons.Script import DefaultEnvironment
  7. env = DefaultEnvironment()
  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()