Skip to content

Commit

Permalink
add support for uppercase letters in file paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
NevermindNilas committed Jun 19, 2024
1 parent bc0e429 commit 59c04a9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/uiLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 59c04a9

Please sign in to comment.