IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13297


Ignore:
Timestamp:
May 7, 2007, 11:03:10 AM (19 years ago)
Author:
Paul Price
Message:

Only load Nebulous::Client when required.

File:
1 edited

Legend:

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

    r13276 r13297  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.43 2007-05-05 02:52:28 price Exp $
     3# $Id: Config.pm,v 1.44 2007-05-07 21:03:10 price Exp $
    44
    55package PS::IPP::Config;
     
    1616use Getopt::Long 2.35 qw( GetOptions :config gnu_getopt pass_through ); # Set pass_through so we don't kill @ARGV
    1717use URI 1.35;
    18 use Nebulous::Client 0.02;
    1918
    2019use base qw( Class::Accessor::Fast Exporter );
     
    219218{
    220219    my $self = shift;           # Configuration object
     220
     221    eval {
     222        require Nebulous::Client;
     223    };
     224    if ($@) {
     225        carp "Can't find Nebulous::Client.";
     226        exit($PS_EXIT_PROG_ERROR);
     227    }
    221228
    222229    return 1 if defined $self->{nebulous}; # Already started
Note: See TracChangeset for help on using the changeset viewer.