From f5fcf43171ce4dedec6e55dd4f37052c4f64de18 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 10 Sep 2014 17:16:58 +0200 Subject: Ported client/start.sh to python --- client/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 client/main.py (limited to 'client/main.py') diff --git a/client/main.py b/client/main.py old mode 100644 new mode 100755 index fb0eaf0..232415c --- a/client/main.py +++ b/client/main.py @@ -1,3 +1,15 @@ +#!/usr/bin/env python2 + +import os +import shutil + +# Change CWD to $JASPER_HOME/jasper/client +os.chdir(os.path.join(os.getenv("JASPER_HOME"), "jasper" , "client")) + +old_client = os.path.abspath(os.path.join(os.pardir, "old_client")) +if os.path.exists(old_client): + shutil.rmtree(old_client) + import yaml import sys import speaker -- cgit v1.3.1