[mythtv] [PATCH] [nuvexport] Patch to allow using
~/.mythtv/mysql.txt
Chris Pinkham
cpinkham at bc2va.org
Sun Mar 21 18:32:27 EST 2004
The attached patch makes nuvexport attempt to use the the mysql.txt
file located in the user's ~/.mythtv/ directory if it exists prior
to checking for the global mythtv mysql.txt file.
Since the global mysql.txt gets overwritten everytime you do a "make install",
I utilize myth's ability to use a mysql.txt in my home directory. It would
be nice if nuvexport could support the same functionality so the attached
patch gives it that ability.
--
Chris Pinkham
-------------- next part --------------
diff -urN nuvexport/nuvexport nuvexport-checkhomedir/nuvexport
--- nuvexport/nuvexport 2004-02-05 02:17:20.000000000 -0500
+++ nuvexport-checkhomedir/nuvexport 2004-03-20 15:01:06.000000000 -0500
@@ -191,7 +191,8 @@
# Read the mysql.txt file in use by MythTV.
# could be in a couple places, so try the usual suspects
- open(CONF, "/usr/share/mythtv/mysql.txt")
+ open(CONF, $ENV{HOME} . "/.mythtv/mysql.txt")
+ or open(CONF, "/usr/share/mythtv/mysql.txt")
or open(CONF, "/usr/local/share/mythtv/mysql.txt")
or die ("Unable to open /usr/share/mythtv/mysql.txt: $!\n\n");
while (my $line = <CONF>) {
More information about the mythtv-dev
mailing list