Changeset 0272b16
- Timestamp:
- Jul 20, 2016, 9:22:40 PM (10 years ago)
- Branches:
- 0.5, app-cordova, debian/bullseye, debian/jessie, master
- Children:
- e82ec64
- Parents:
- c53f31a
- File:
-
- 1 edited
-
src/daemon/gnuboat-splashscreen (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/daemon/gnuboat-splashscreen
rc53f31a r0272b16 30 30 imageBlackWhite = imageResized.convert("1", dither=Image.FLOYDSTEINBERG) 31 31 epd.display(imageBlackWhite) 32 epd.update() 33 34 def usage(): 35 print "Usage of gnuboat-splashscreen:" 36 print " gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY" 37 print "" 38 print " -h --help Print this help" 39 print " -i --image Path to the image, which should be displayed" 40 sys.exit() 32 41 33 42 def main(argv): … … 39 48 sys.exit(2) 40 49 50 for option, argument in opts: 51 if option == ("-h", "--help"): 52 usage() 53 sys.exit() 54 elif option in ("-i", "--image"): 55 image = argument 56 else: 57 assert False, "unhandled option" 58 41 59 if not os.path.exists(image): 60 print "Image %s not found" % image 61 print "" 42 62 usage() 43 63 sys.exit(2)
Note:
See TracChangeset
for help on using the changeset viewer.
