logo       

Re: tv_grab_se_swedb in CVS - testing wanted: msg#00123

tv.xmltv.devel

Subject: Re: tv_grab_se_swedb in CVS - testing wanted

Robert Eden wrote:
Line 407: my $home = $ENV{HOME} | ".";
| should be || for "or"
| is a bitwise or.


Fixed.

Line 427:
open( OUT, "> $home/.xmltv/cache.conf" )
or die "Failed to write to
$home/.xmltv/cache.conf";

What if I don't want to store the cache.conf under $HOME. Most grabbers
allow you to specify the path.


Ok. You can now set the environment variable CACHE_CONF to the location of your cache configuration file.

BTW... $HOME doesn't exist by default on windows. "HOMEDRIVE" and
"HOMEPATH" do, plus by default HOMEPATH has spaces in it!


I now have

my $home = $ENV{HOME} ||
$ENV{HOMEDRIVE} . $ENV{HOMEPATH} ||
".";

That ought to work on Windows as well. Windows-users, please test.

/Mattias




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise