diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 13:50:19 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:41:15 -0400 |
| commit | ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b (patch) | |
| tree | 58d9a570b7c0f34cbb3ebd1e8868fccbb073f709 | |
| parent | de094912cd630616634a645977990a9b3fb99665 (diff) | |
| download | jasper-client-ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b.tar.gz jasper-client-ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b.zip | |
Move stdlib/3rd-party imports to the top
| -rwxr-xr-x | jasper.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 |
