We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89573d commit 0b3a0b4Copy full SHA for 0b3a0b4
v1.0/mrmine/gui.py
@@ -46,6 +46,21 @@
46
==============="""
47
}
48
49
+def read_save():
50
+ save_data = {}
51
+ with open('mrmine_save.txt', 'r') as file:
52
+ for line in file:
53
+ line = line.strip()
54
+ if '=' in line: # Ensuring there's a key-value split
55
+ key, value = line.split('=', 1) # Split on first '=' to handle complex values
56
+ try:
57
+ # Attempt to evaluate the value for correct data types
58
+ save_data[key] = eval(value)
59
+ except Exception:
60
+ # If eval fails, it's likely a string or ambiguous format
61
+ save_data[key] = value
62
+ return save_data
63
+
64
def update_GUI_func(key):
65
if key=='q':
66
os.system('clear')
0 commit comments