소스 검색

Some readme and rename of runner

kmpm 8 년 전
부모
커밋
89ab381570
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      README.md
  2. 2 1
      lib/main.py
  3. 0 0
      nodemcu-uploader.py

+ 5 - 1
README.md

@@ -18,7 +18,11 @@ Otherwise clone from github and run directly from there
 
     git clone https://github.com/kmpm/nodemcu-uploader
     cd nodemcu-uploader
-    python ./run.py
+    python ./nodemcu-uploader.py
+
+Note that pip would install pyserial >=3.0. pyserial 2.7 should work
+but there might be some bugs that could bite you.
+
 
 ### Notes for Windows
 This might work with 64 bit Python but is not tested.

+ 2 - 1
lib/main.py

@@ -7,6 +7,7 @@ import logging
 import os
 from .uploader import Uploader
 from .term import terminal
+from serial import VERSION as serialversion
 
 log = logging.getLogger(__name__)
 from .version import __version__
@@ -100,7 +101,7 @@ def main_func():
         '--version',
         help='prints the version and exists',
         action='version',
-        version='%(prog)s {version}'.format(version=__version__)
+        version='%(prog)s {version} (serial {serialversion})'.format(version=__version__, serialversion=serialversion)
     )
 
     parser.add_argument(

+ 0 - 0
run.py → nodemcu-uploader.py