Browse Source

Execute the compiled version when --dofile is combined with --compile.

Lourens Rozema 9 years ago
parent
commit
1140cdfec7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      nodemcu-uploader.py

+ 3 - 1
nodemcu-uploader.py

@@ -426,7 +426,9 @@ if __name__ == '__main__':
                     if args.compile:
                         uploader.file_compile(d)
                         uploader.file_remove(d)
-                    if args.dofile:
+                        if args.dofile:
+                            uploader.file_do(os.path.splitext(d)[0]+'.lc')
+                    elif args.dofile:
                         uploader.file_do(d)
             else:
                 raise Exception('You must specify a destination filename for each file you want to upload.')