From ca5ec647de9c0cfae1f6f472b69ef9a1d1e3ac5b Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 11 Sep 2014 13:50:19 +0200 Subject: Move stdlib/3rd-party imports to the top --- jasper.py | 10 ++++------ 1 file 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 -- cgit v1.3.1