From 7006a6453d28718188eb7c1849e6c489ddd1df68 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 7 Nov 2021 19:31:16 -0700 Subject: [PATCH] Add debug console launcher --- scripts/embedded_python_env.py | 6 ++++++ scripts/wk/cfg/launchers.py | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/scripts/embedded_python_env.py b/scripts/embedded_python_env.py index bfba36bf..32103427 100644 --- a/scripts/embedded_python_env.py +++ b/scripts/embedded_python_env.py @@ -11,3 +11,9 @@ import sys os.chdir(os.path.dirname(os.path.realpath(__file__))) sys.path.append(os.getcwd()) import wk # pylint: disable=wrong-import-position +wk.std.print_colored( + (wk.cfg.main.KIT_NAME_FULL, ': ', 'Debug Console'), + ('GREEN', None, 'YELLOW'), + sep='', + ) +print('') diff --git a/scripts/wk/cfg/launchers.py b/scripts/wk/cfg/launchers.py index dff0830c..9e98d5fb 100644 --- a/scripts/wk/cfg/launchers.py +++ b/scripts/wk/cfg/launchers.py @@ -246,6 +246,17 @@ LAUNCHERS = { 'L_PATH': 'PuTTY', 'L_ITEM': 'PUTTY.EXE', }, + 'WizardKit Debug Console': { + 'L_TYPE': 'Executable', + 'L_PATH': 'ConEmu', + 'L_ITEM': 'ConEmu.exe', + 'L_ARGS': r'-Dir %bin%\Scripts -Run ..\Python\x%ARCH%\python.exe -i embedded_python_env.py', + 'L_ELEV': 'True', + 'Extra Code': [ + 'set ARCH=32', + 'if /i "%PROCESSOR_ARCHITECTURE%" == "AMD64" set "ARCH=64"', + ], + }, 'WizTree': { 'L_TYPE': 'Executable', 'L_PATH': 'WizTree',