open file
This commit is contained in:
@@ -1,8 +1,20 @@
|
|||||||
import subject
|
import subject
|
||||||
import user_IO
|
import user_IO
|
||||||
|
import serializer
|
||||||
|
import encryption
|
||||||
|
import os
|
||||||
|
|
||||||
subjects = []
|
subjects = []
|
||||||
|
filepath = "/data/user.grades"
|
||||||
try:
|
try:
|
||||||
|
password = user_IO.password()
|
||||||
|
if os.path.isfile(filepath):
|
||||||
|
with open(filepath, 'r') as file:
|
||||||
|
string = encryption.decrypt(password, file.read())
|
||||||
|
serializer.deserialize(string)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
user_input = user_IO.user_input()
|
user_input = user_IO.user_input()
|
||||||
input_or_output = user_input[0]
|
input_or_output = user_input[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user