diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-10 18:12:04 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-11 10:41:14 -0400 |
| commit | 263a86b10264518e4190259bcc39004f8ced1f3f (patch) | |
| tree | 09a3b9a828c8fd04c59cec04989548214cf7a8db /boot | |
| parent | 041984eb51747be36edeb50d96f9f8856b86cca5 (diff) | |
| download | jasper-client-263a86b10264518e4190259bcc39004f8ced1f3f.tar.gz jasper-client-263a86b10264518e4190259bcc39004f8ced1f3f.zip | |
Move client/main.py to jasper.py and add client/main.py dummy script for backwards compatibility
Diffstat (limited to 'boot')
| -rwxr-xr-x | boot/boot.py | 5 | ||||
| -rwxr-xr-x | boot/boot.sh | 2 |
2 files changed, 5 insertions, 2 deletions
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" |
