Ticket #4697: mythtv_python_bindings_global_fix.diff

File mythtv_python_bindings_global_fix.diff, 1.2 KB (added by Hadley Rich <hads@…>, 16 years ago)
  • bindings/python/MythTV/MythVideo.py

     
    33MythVideo database.
    44"""
    55
    6 import MythDB
     6from MythDB import *
    77from MythLog import *
    88
    99log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythVideo')
     
    1616                """
    1717                Initialise the MythDB connection.
    1818                """
    19                 self.db = MythDB.MythDB()
     19                self.db = MythDB()
    2020
    2121        def pruneMetadata(self):
    2222                """
  • bindings/python/MythTV/MythTV.py

     
    1515import code
    1616from datetime import datetime
    1717
    18 import MythDB
     18from MythDB import *
    1919from MythLog import *
    2020
    2121log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV')
     
    5252        A connection to a MythTV backend.
    5353        """
    5454        def __init__(self, conn_type='Monitor'):
    55                 self.db = MythDB.MythDB(sys.argv[1:])
     55                self.db = MythDB(sys.argv[1:])
    5656                self.master_host = self.db.getSetting('MasterServerIP')
    5757                self.master_port = int(self.db.getSetting('MasterServerPort'))
    5858