From cc95bbe68b18ae9de4b5475d22db960264a2d8d0 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Thu, 14 Oct 2021 23:59:26 -0600 Subject: [PATCH] Add embedded_python_env.py Allows for faster debugging when using the embedded version of Python. --- scripts/embedded_python_env.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/embedded_python_env.py diff --git a/scripts/embedded_python_env.py b/scripts/embedded_python_env.py new file mode 100644 index 00000000..bfba36bf --- /dev/null +++ b/scripts/embedded_python_env.py @@ -0,0 +1,13 @@ +"""WizardKit: Embedded Python helper. + +This saves the keystrokes needed to fix the path and import wk. To use: +python.exe -i embedded_python_env.py +""" +# vim: sts=2 sw=2 ts=2 + +import os +import sys + +os.chdir(os.path.dirname(os.path.realpath(__file__))) +sys.path.append(os.getcwd()) +import wk # pylint: disable=wrong-import-position