浏览代码

python: Small cleanups

Keir Fraser 5 年之前
父节点
当前提交
f2ab14fd1b
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Makefile
  2. 2 2
      scripts/gw.py

+ 1 - 1
Makefile

@@ -17,7 +17,7 @@ all:
 
 clean:
 	rm -f *.hex *.upd scripts/greaseweazle/*.pyc
-	rm -rf scripts/greaseweazle/__pycache__
+	find . -name __pycache__ | xargs rm -rf
 	$(MAKE) -f $(ROOT)/Rules.mk $@
 
 dist:

+ 2 - 2
scripts/gw.py

@@ -372,8 +372,8 @@ def _main(argv):
   sample_freq = info[4]
   update_mode = (info[2] == 0)
 
-  print("** Greaseweazle %sv%u.%u"
-        % (("","Bootloader ")[update_mode], info[0], info[1]))
+  print("** %s v%u.%u"
+        % (("Greaseweazle","Bootloader")[update_mode], info[0], info[1]))
 
   if update_mode and args.action != "update":
     print("Greaseweazle is in Firmware Update Mode:")