diff options
author | Britney Fransen <brfransen@gmail.com> | 2023-01-23 17:06:46 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2023-01-23 17:06:46 (GMT) |
commit | 1b28d4879e5c6391dec91de9344c7ce9da918de5 (patch) | |
tree | 19aab2b976a5560c87cb434e72327fc46e062437 /linhes/linhes-system/gen_lib_xml.py | |
parent | 3f313532881ff9c2a0e189a4eead51f20bd6f716 (diff) | |
download | linhes_pkgbuild-1b28d4879e5c6391dec91de9344c7ce9da918de5.zip linhes_pkgbuild-1b28d4879e5c6391dec91de9344c7ce9da918de5.tar.gz linhes_pkgbuild-1b28d4879e5c6391dec91de9344c7ce9da918de5.tar.bz2 |
linhes-system: gen_lib_xml.py use lh_home_check.sh
Diffstat (limited to 'linhes/linhes-system/gen_lib_xml.py')
-rwxr-xr-x | linhes/linhes-system/gen_lib_xml.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/linhes/linhes-system/gen_lib_xml.py b/linhes/linhes-system/gen_lib_xml.py index 31dcdc2..8169f4e 100755 --- a/linhes/linhes-system/gen_lib_xml.py +++ b/linhes/linhes-system/gen_lib_xml.py @@ -4,7 +4,7 @@ #This script should be run everytime an entry is added or removed -import os, sys +import os, sys, subprocess import glob class Gen_lib_xml: @@ -93,12 +93,8 @@ def write_xml(xml,filename): f.close() def main(): - sys.path.append('/usr/MythVantage/bin/') - config_file = "mv_config" - data_config = __import__(config_file, globals(), locals(), []) - - filename="%s/.mythtv/library.xml" %data_config.MYTHHOME - #filename="/tmp/library.xml" + MYTHHOME=subprocess.check_output("lh_home_check.sh").decode('utf-8').strip() + filename="%s/.mythtv/library.xml" %MYTHHOME orig_theme_file="/usr/share/mythtv/themes/defaultmenu/library.xml" lib_xml_dir="/etc/gen_lib_xml.d/" |