IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13262


Ignore:
Timestamp:
May 4, 2007, 3:06:52 PM (19 years ago)
Author:
eugene
Message:

need to check for ENV HOME before using it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r13260 r13262  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.41 2007-05-05 00:54:10 jhoblitt Exp $
     3# $Id: Config.pm,v 1.42 2007-05-05 01:06:52 eugene Exp $
    44
    55package PS::IPP::Config;
     
    1111
    1212use Carp qw( carp );
    13 use File::Spec 3.19;
     13# use File::Spec 3.19;
     14use File::Spec 0.87;
    1415use PS::IPP::Metadata::Config 1.00;
    1516use Getopt::Long 2.35 qw( GetOptions :config gnu_getopt pass_through ); # Set pass_through so we don't kill @ARGV
     
    6263    GetOptions( 'site=s' => \$name );
    6364    $name = $ENV{PS_SITE} if not defined $name;
    64     no warnings qw( uninitialized );
    65     $name = $ENV{HOME} . '/.ipprc' if not defined $name;
    66     use warnings;
     65    if (not defined $name and defined $ENV{HOME}) {
     66        $name = $ENV{HOME} . '/.ipprc';
     67    }
    6768
    6869    my $file;                   # File handle
Note: See TracChangeset for help on using the changeset viewer.