mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
21 lines
526 B
Python
21 lines
526 B
Python
# Load the bbs messages from the database file to screen for admin functions
|
|
import pickle # pip install pickle
|
|
|
|
|
|
# load the bbs messages from the database file
|
|
try:
|
|
with open('../bbsdb.pkl', 'rb') as f:
|
|
bbs_messages = pickle.load(f)
|
|
except:
|
|
print ("\nSystem: bbsdb.pkl not found")
|
|
|
|
try:
|
|
with open('../bbsdm.pkl', 'rb') as f:
|
|
bbs_dm = pickle.load(f)
|
|
except:
|
|
print ("\nSystem: bbsdm.pkl not found")
|
|
|
|
print ("\nSystem: bbs_messages")
|
|
print (bbs_messages)
|
|
print ("\nSystem: bbs_dm")
|
|
print (bbs_dm) |