Update to Raspbian 11; using python3

This commit is contained in:
Bandie 2021-11-13 16:14:15 +01:00
parent ce451daef1
commit 5d475701e6
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312

View File

@ -1,18 +1,17 @@
#!/usr/bin/env python2 #!/usr/bin/env python3
# vim: ts=2 sw=2 et # vim: ts=2 sw=2 et
import os import os
import stat import stat
import time import time
import pifacedigitalio import pifacedigitalio
import urllib2
import signal import signal
import sys import sys
import grp import grp
from ConfigParser import SafeConfigParser from configparser import ConfigParser
#Read config #Read config
parser = SafeConfigParser() parser = ConfigParser()
parser.read('/etc/foodoord.conf') parser.read('/etc/foodoord.conf')
doorapi = parser.get('doorstatus', 'status_url') doorapi = parser.get('doorstatus', 'status_url')