|
|
@ -1,5 +1,7 @@
|
|
|
|
import os, sys
|
|
|
|
import os, sys
|
|
|
|
from ui.add_student import StudentTUI
|
|
|
|
from ui.add_student import StudentTUI
|
|
|
|
|
|
|
|
from DAL.clear_all_student import IStudentDAL
|
|
|
|
|
|
|
|
from BLL.add_student import StudentBLL
|
|
|
|
|
|
|
|
|
|
|
|
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
project_dir = os.path.dirname(cur_dir)
|
|
|
|
project_dir = os.path.dirname(cur_dir)
|
|
|
@ -7,9 +9,8 @@ project_dir = os.path.dirname(cur_dir)
|
|
|
|
sys.path.append(project_dir)
|
|
|
|
sys.path.append(project_dir)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
|
|
|
|
|
|
|
|
file_path ='./data/students.json'
|
|
|
|
file_path ='./data/students.json'
|
|
|
|
|
|
|
|
ui = StudentTUI(file_path)
|
|
|
|
ui = StudentTUI(file_path)
|
|
|
|
ui.run()
|
|
|
|
if __name__=='__main__':
|
|
|
|
if __name__=='__main__':
|
|
|
|
main()
|
|
|
|
main()
|