From 263a86b10264518e4190259bcc39004f8ced1f3f Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 10 Sep 2014 18:12:04 +0200 Subject: Move client/main.py to jasper.py and add client/main.py dummy script for backwards compatibility --- boot/boot.py | 5 ++++- boot/boot.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'boot') diff --git a/boot/boot.py b/boot/boot.py index c7afcfd..6ec7137 100755 --- a/boot/boot.py +++ b/boot/boot.py @@ -3,6 +3,9 @@ # This file exists for backwards compatibility with older versions of jasper. # It might be removed in future versions. import os +import sys import runpy -script_path = os.path.join(os.path.dirname(__file__), os.pardir, "client", "main.py") +script_path = os.path.join(os.path.dirname(__file__), os.pardir, "jasper.py") +sys.path.remove(os.path.dirname(__file__)) +sys.path.insert(0, os.path.dirname(script_path)) runpy.run_path(script_path, run_name="__main__") diff --git a/boot/boot.sh b/boot/boot.sh index 9fc8af8..240a7f7 100755 --- a/boot/boot.sh +++ b/boot/boot.sh @@ -1,4 +1,4 @@ #!/bin/bash # This file exists for backwards compatibility with older versions of Jasper. # It might be removed in future versions. -"${0%/*}/boot.py" +"${0%/*}/../jasper.py" -- cgit v1.3.1