summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/gen_lib_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/gen_lib_xml.py')
-rwxr-xr-xlinhes/linhes-system/gen_lib_xml.py10
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/"