From 59c04a9259759f719e821eb1998a4ab572d52449 Mon Sep 17 00:00:00 2001 From: NevermindNilas Date: Thu, 20 Jun 2024 00:00:44 +0300 Subject: [PATCH] add support for uppercase letters in file paths. --- src/uiLogic.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/uiLogic.py b/src/uiLogic.py index f1f4a846..7fa7b1a6 100644 --- a/src/uiLogic.py +++ b/src/uiLogic.py @@ -94,17 +94,21 @@ def runCommand(self, mainPath, settingsFile) -> None: for option in loadSettingsFile: loweredOption = option.lower() - loweredOptionValue = str(loadSettingsFile[option]) - if "http" not in loweredOptionValue: + + if loweredOption == "output": + if loweredOptionValue == "": + continue + elif loweredOption == "input": + if loweredOptionValue == "": + print("Input path is empty") + return + else: loweredOptionValue = loweredOptionValue.lower() if loweredOptionValue == "false": continue - if loweredOption == "output" and loweredOptionValue == "": - continue - if loweredOption in ["input", "output"]: command.append(f"--{loweredOption} \"{loweredOptionValue}\"") else: