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/boot.py | |
| 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/boot.py')
| -rwxr-xr-x | boot/boot.py | 5 |
1 files changed, 4 insertions, 1 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__") |
