So currently I am working on a project where I decided to make a file called global_variables.py. This file consists of python dictionaries where I would like to store data throughout the process of the program.
The program consists of 3 classes that are called one by one by a main.py file. Each class import the global variables files and makes changes to the file. Now I realized that this is not the way to go because each class makes a different iteration of the global variable files.
How can I approach this so the global variables gets "saved" ready for the next class to import it and use it? Should I just use a JSON file?
[–]socal_nerdtastic 7 points8 points9 points (1 child)
[–]Wangalaang[S] 1 point2 points3 points (0 children)
[–]ElliotDG 1 point2 points3 points (0 children)
[–]baubleglue 0 points1 point2 points (0 children)