Example #1
0
def load_data():
	try:
		with open('system.pickle','rb') as file:
			system = pickle.load(file)
	except IOError:
		system = bootstrap_system()
		print("Initialize new system")
	
	return system
Example #2
0
from flask import Flask
from init import bootstrap_system

app = Flask(__name__)
app.secret_key = 'very-secret-123'

system = bootstrap_system()
Example #3
0
def sys():
    sys = bootstrap_system()
    return sys