Browse Source

python: Small cleanups

Keir Fraser 5 years ago
parent
commit
f2ab14fd1b
2 changed files with 3 additions and 3 deletions
  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:")