Skip to content

Commit

Permalink
added langs log
Browse files Browse the repository at this point in the history
  • Loading branch information
rizal72 committed Jan 23, 2017
1 parent 55cede4 commit 7ca4565
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cvc/cozmo_voice_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ def load_jsons():

if log:
print("Package Location: " + package_location + "\nRelative location: " + relative_location)

for file in glob.glob(absolute_location):
with open(file) as json_file:
languages.append(json.load(json_file))
if (log):
cprint("loaded: " + str(file) + " ", "yellow")
cprint("loaded: " + str(file.rpartition("/")[-1]) + " ", "yellow")

if len(languages) == 0:
cprint("\nno languages found! Quitting...", "red")
Expand Down

0 comments on commit 7ca4565

Please sign in to comment.