Skip to content

Commit

Permalink
fixed load
Browse files Browse the repository at this point in the history
  • Loading branch information
KylieGong committed Aug 16, 2023
1 parent cbc4427 commit b5dd30c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def load(self):
default_values = {}
with open(file, "r") as f:
for line in f:
label, value = line.strip().split(":")
label = label.split(":")[0]
label, value = line.strip().split("=")
value = value.split(",") if "," in value else [value]
default_values[label] = value

Expand Down

0 comments on commit b5dd30c

Please sign in to comment.