diff options
31 files changed, 37 insertions, 4 deletions
diff --git a/boot/boot.py b/boot/boot.py index e107166..cb49552 100755 --- a/boot/boot.py +++ b/boot/boot.py @@ -1,5 +1,5 @@ -#!/usr/bin/env python - +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import urllib2 import sys diff --git a/boot/boot.sh b/boot/boot.sh index e712c0d..f4e577d 100755 --- a/boot/boot.sh +++ b/boot/boot.sh @@ -14,4 +14,4 @@ LD_LIBRARY_PATH="/usr/local/lib" export LD_LIBRARY_PATH PATH=$PATH:/usr/local/lib/ export PATH -python boot.py & +./boot.py & diff --git a/boot/test.py b/boot/test.py index 3d93936..638ca77 100644..100755 --- a/boot/test.py +++ b/boot/test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os if os.environ.get('JASPER_HOME') is None: diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py index a3aaf66..f22da1a 100644 --- a/boot/vocabcompiler.py +++ b/boot/vocabcompiler.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ Iterates over all the WORDS variables in the modules and creates a dictionary for the client. """ diff --git a/client/alteration.py b/client/alteration.py index 550bba1..91e0ad3 100644 --- a/client/alteration.py +++ b/client/alteration.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re diff --git a/client/brain.py b/client/brain.py index 2babfdf..b6014de 100644 --- a/client/brain.py +++ b/client/brain.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import logging from os import listdir diff --git a/client/conversation.py b/client/conversation.py index a5937da..fe3e058 100755..100644 --- a/client/conversation.py +++ b/client/conversation.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- from notifier import Notifier from musicmode import * from brain import Brain diff --git a/client/g2p.py b/client/g2p.py index bae40b6..d22445a 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import os import subprocess import re diff --git a/client/local_mic.py b/client/local_mic.py index 44e232d..3da6ed1 100644 --- a/client/local_mic.py +++ b/client/local_mic.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ A drop-in replacement for the Mic class that allows for all I/O to occur over the terminal. Useful for debugging. Unlike with the typical Mic diff --git a/client/main.py b/client/main.py index fb0eaf0..6683188 100644..100755 --- a/client/main.py +++ b/client/main.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import yaml import sys import speaker diff --git a/client/mic.py b/client/mic.py index 01a37cb..096610d 100644 --- a/client/mic.py +++ b/client/mic.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ The Mic class handles all interactions with the microphone and speaker. """ diff --git a/client/modules/Birthday.py b/client/modules/Birthday.py index 1388443..b484a4f 100644 --- a/client/modules/Birthday.py +++ b/client/modules/Birthday.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import datetime import re from facebook import * diff --git a/client/modules/Gmail.py b/client/modules/Gmail.py index b401ae6..dfb6854 100644 --- a/client/modules/Gmail.py +++ b/client/modules/Gmail.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import imaplib import email import re diff --git a/client/modules/HN.py b/client/modules/HN.py index 863d40a..ec7ecef 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import urllib2 import re import random diff --git a/client/modules/Joke.py b/client/modules/Joke.py index 52b3eb9..802047c 100644 --- a/client/modules/Joke.py +++ b/client/modules/Joke.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/Life.py b/client/modules/Life.py index 2c79ee1..4cafd75 100644 --- a/client/modules/Life.py +++ b/client/modules/Life.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import random import re diff --git a/client/modules/News.py b/client/modules/News.py index 8b4b9a3..d80b791 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import feedparser import app_utils import re diff --git a/client/modules/Notifications.py b/client/modules/Notifications.py index fc91da1..9ee004c 100644 --- a/client/modules/Notifications.py +++ b/client/modules/Notifications.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re from facebook import * diff --git a/client/modules/Time.py b/client/modules/Time.py index 2fe8a10..90ffdf9 100644 --- a/client/modules/Time.py +++ b/client/modules/Time.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import datetime import re from app_utils import getTimezone diff --git a/client/modules/Unclear.py b/client/modules/Unclear.py index 23ab2ed..3900300 100644 --- a/client/modules/Unclear.py +++ b/client/modules/Unclear.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- from sys import maxint import random diff --git a/client/modules/Weather.py b/client/modules/Weather.py index ad1ac29..5922d33 100644 --- a/client/modules/Weather.py +++ b/client/modules/Weather.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re import datetime import feedparser diff --git a/client/modules/app_utils.py b/client/modules/app_utils.py index 68cce38..cea6881 100644 --- a/client/modules/app_utils.py +++ b/client/modules/app_utils.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import smtplib from email.MIMEText import MIMEText import urllib2 diff --git a/client/music.py b/client/music.py index 2b22b81..2b6c055 100644 --- a/client/music.py +++ b/client/music.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re import difflib from mpd import MPDClient diff --git a/client/musicmode.py b/client/musicmode.py index df3072c..334f94c 100755..100644 --- a/client/musicmode.py +++ b/client/musicmode.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ Manages the conversation """ diff --git a/client/notifier.py b/client/notifier.py index 341ae04..5c2d855 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import Queue from modules import Gmail from apscheduler.scheduler import Scheduler diff --git a/client/populate.py b/client/populate.py index 054366e..d1cbb80 100644 --- a/client/populate.py +++ b/client/populate.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- import re from getpass import getpass import yaml diff --git a/client/speaker.py b/client/speaker.py index 4c50a27..8344132 100644 --- a/client/speaker.py +++ b/client/speaker.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ A Speaker handles audio output from Jasper to the user diff --git a/client/start.sh b/client/start.sh index cc33f9c..052db18 100755 --- a/client/start.sh +++ b/client/start.sh @@ -1,3 +1,4 @@ +#!/bin/bash cd $JASPER_HOME/jasper/client rm -rf ../old_client -python main.py & +./main.py & diff --git a/client/stt.py b/client/stt.py index daa3fd3..e14ab26 100644 --- a/client/stt.py +++ b/client/stt.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import traceback import json import requests diff --git a/client/test.py b/client/test.py index 54aeb49..a8f12be 100644 --- a/client/test.py +++ b/client/test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import sys diff --git a/client/test_mic.py b/client/test_mic.py index b01240f..4813e5c 100644 --- a/client/test_mic.py +++ b/client/test_mic.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8-*- """ A drop-in replacement for the Mic class used during unit testing. Designed to take pre-arranged inputs as an argument and store any |
