4 from subprocess
import Popen, PIPE
7 SMOON_URL =
"http://smolt.mythtv.org/"
10 from MythTV
import MythDB
11 confdir = os.path.join(MythDB().dbconfig.confdir,
'HardwareProfile')
13 os.mkdir(confdir, 0o700)
17 HW_UUID = os.path.join(confdir,
'hw-uuid')
18 PUB_UUID = os.path.join(confdir,
'pub-uuid')
19 UUID_DB = os.path.join(confdir,
'uuiddb.cfg')
20 ADMIN_TOKEN = os.path.join(confdir,
'smolt_token')
33 p = Popen([
'findmnt',
'--noheadings',
'--output',
'TARGET',
'--raw',
'--fstab'], stdout=PIPE)
34 FS_MOUNTS = p.stdout.read().decode(
'utf-8')