diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 17:16:58 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 17:16:58 +0200 |
| commit | f5fcf43171ce4dedec6e55dd4f37052c4f64de18 (patch) | |
| tree | 93f3c50010dfa4ce23d5759b66f1393d7a7d8674 /client/main.py | |
| parent | 45ee6b4e2cd55b901770578e6915312e7792edae (diff) | |
| download | jasper-client-f5fcf43171ce4dedec6e55dd4f37052c4f64de18.tar.gz jasper-client-f5fcf43171ce4dedec6e55dd4f37052c4f64de18.zip | |
Ported client/start.sh to python
Diffstat (limited to 'client/main.py')
| -rwxr-xr-x[-rw-r--r--] | client/main.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/main.py b/client/main.py index fb0eaf0..232415c 100644..100755 --- 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 |
