From e0e2c5acde7d6a8c65fe56e809dd978fcac1b7c3 Mon Sep 17 00:00:00 2001 From: Ebe66 <88671974+Ebe66@users.noreply.github.com> Date: Sun, 18 May 2025 20:41:28 +0200 Subject: [PATCH 1/2] Enable GUI on Windows WSL WSL has GUI support for a few years now so need anymore to block it. --- wahoomc/input.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wahoomc/input.py b/wahoomc/input.py index 25bc55bc..93c3ced0 100644 --- a/wahoomc/input.py +++ b/wahoomc/input.py @@ -94,10 +94,6 @@ def process_call_of_the_tool(): # process depending on GUI or CLI processing. # returns the input parameters in both cases if args.subparser_name == 'gui': - # Prevents the initialisation of the graphical GUI on WSL. - if 'microsoft' in uname().release: - sys.exit("GUI can not be startet because no graphical interface is available. Start with 'python -m wahoo_mc cli -h' or 'python -m wahoo_mc -h' to see command line options.") - o_input_data = GuiInput().start_gui() return o_input_data From 660a951baa4c97878ffbf3863a768cb26c88fc30 Mon Sep 17 00:00:00 2001 From: Ebe66 <88671974+Ebe66@users.noreply.github.com> Date: Mon, 19 May 2025 07:48:39 +0200 Subject: [PATCH 2/2] Pylint fix Removed no longer needed import of uname --- wahoomc/input.py | 1 - 1 file changed, 1 deletion(-) diff --git a/wahoomc/input.py b/wahoomc/input.py index 93c3ced0..3f95afcc 100644 --- a/wahoomc/input.py +++ b/wahoomc/input.py @@ -6,7 +6,6 @@ # import official python packages import argparse import sys -from platform import uname # for gui import tkinter as tk