Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hirtz committed Oct 15, 2014
1 parent dc3b4c9 commit 26c0110
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion blinkclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from socket_protocol import BlinkClient
from blinkconfig import *
import cmd
import sys


class Prompt(cmd.Cmd):
Expand Down Expand Up @@ -42,9 +43,15 @@ def do_show_clips(self, line):
ret = connector.get_available_clips()
print(ret)

def do_quit(self, line):
return True

def help_load_file(self):
print("Reads a file and adds it to the list of available clips.")

if __name__ == '__main__':
connector = BlinkClient(getstring("ethernet_host"), getint("ethernet_port"))
args = sys.argv[1:]
host = args[0] if len(args) > 0 else getstring("ethernet_host")
port = int(args[1]) if len(args) == 2 else getint("ethernet_port")
connector = BlinkClient(host, port)
Prompt().cmdloop()
2 changes: 1 addition & 1 deletion blinkconfig.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import namedtuple
from os.path import expanduser

VERSION = "1.0.7"
VERSION = "1.0.8"
AUTHOR = "Christoph Hirtz"
MAIL = "[email protected]"

Expand Down

0 comments on commit 26c0110

Please sign in to comment.