Пример #1
0
def dev_uploader(target, source, env):
    try:
        plugin = env.BoardConfig().get("upload.plugin")
        sys.path.insert(0, join( os.path.dirname( os.path.abspath( env["PLATFORM_MANIFEST"] ) ), "boards",  ))
        print("THE UPLOADER USE PLUGIN", plugin )
    except:
        plugin = None
    return upload_app(env.BoardConfig().get("build.core"), join(env.get("BUILD_DIR"), "program.bin"), env.get("UPLOAD_PORT"), plugin)
Пример #2
0
def dev_uploader(target, source, env):
    return upload_app(env.BoardConfig().get("build.core"), join(env.get("BUILD_DIR"), "program.bin"), env.get("UPLOAD_PORT"))