瀏覽代碼

Erase compiled version before uploading a new compile.

Lourens Rozema 9 年之前
父節點
當前提交
039c10b2c6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      nodemcu-uploader.py

+ 2 - 0
nodemcu-uploader.py

@@ -422,6 +422,8 @@ if __name__ == '__main__':
             if len(destinations) == len(sources):
                 uploader.prepare()
                 for f, d in zip(sources, destinations):
+                    if args.compile:
+                        uploader.file_remove(os.path.splitext(d)[0]+'.lc')
                     uploader.write_file(f, d, args.verify)
                     if args.compile:
                         uploader.file_compile(d)