arduino/libraries/CMMC_MQTT_Connector/extra_script.py
2018-11-03 20:21:33 +00:00

19 lines
597 B
Python

from SCons.Script import DefaultEnvironment
import glob, shutil, os
env = DefaultEnvironment()
# uncomment line below to see environment variables
# print env.Dump()
# print ARGUMENTS
# copyfile("src/MqttConnector.h", "tmp/MqttConnector/MqttConnector.h")
# copyfile("src/MqttConnector.cpp", "tmp/MqttConnector/MqttConnector.cpp")
print "BEING COPY FILES..."
if not os.path.exists("pio_compile_here/MqttConnector"):
os.makedirs("pio_compile_here/MqttConnector")
for file in glob.iglob('src/*.*'):
print 'Copied file %s' % (file)
shutil.copy2(file, "pio_compile_here/MqttConnector")