JNP3 16/17

Dependencies:   mbed nRF24L01P

server/database_setup.py

Committer:
pannaanna
Date:
2017-01-23
Revision:
68:e88f3fd2e9cf
Parent:
16:1569130916f1

File content as of revision 68:e88f3fd2e9cf:

from sqlite3 import connect


scheme = 'kubus.sql'
database = 'kubus.db'

conn = connect(database=database)
fd = open(scheme)
script = fd.read()
fd.close()
conn.executescript(script)
conn.close()