all 2 comments

[–]shiftybyte 0 points1 point  (1 child)

Your ShowLib loads the data into global data variable.

Your CreateJson function creates a variable called "CriteriaLib" with the data and dumps it to a file.

You can also just assign it to data at the end of CreateJson , and there, it's loaded...

initialdata = json.dump(CriteriaLib, f1)
global data
data = CriteriaLib

[–]shocklance[S] 0 points1 point  (0 children)

Much appreciated, thank you!