summaryrefslogtreecommitdiff
path: root/jasper.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-11 13:50:19 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-11 10:41:15 -0400
commitca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b (patch)
tree58d9a570b7c0f34cbb3ebd1e8868fccbb073f709 /jasper.py
parentde094912cd630616634a645977990a9b3fb99665 (diff)
downloadjasper-client-ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b.tar.gz
jasper-client-ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b.zip
Move stdlib/3rd-party imports to the top
Diffstat (limited to 'jasper.py')
-rwxr-xr-xjasper.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/jasper.py b/jasper.py
index 75f2019..f3a2ac6 100755
--- a/jasper.py
+++ b/jasper.py
@@ -2,6 +2,10 @@
import os
import sys
+import urllib2
+import traceback
+import shutil
+import yaml
# Set $JASPER_HOME
jasper_home = os.getenv("JASPER_HOME")
@@ -27,9 +31,6 @@ else:
path = "/usr/local/lib/"
os.environ["PATH"] = path
-import urllib2
-import traceback
-
from client import vocabcompiler
from client import speaker as speak
speaker = speak.newSpeaker()
@@ -71,13 +72,10 @@ def configure():
fail(
"There was a problem starting Jasper. Please read the documentation to configure your Raspberry Pi.")
-import shutil
-
old_client = os.path.abspath(os.path.join(os.pardir, "old_client"))
if os.path.exists(old_client):
shutil.rmtree(old_client)
-import yaml
from client import stt
from client.conversation import Conversation