Changeset 2918 for pykota/trunk

Show
Ignore:
Timestamp:
06/05/06 19:17:02 (18 years ago)
Author:
jerome
Message:

Workaround empty CUPS_SERVER environment variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2913 r2918  
    287287            self.ControlFile = "NotUsedAnymore" 
    288288            cupsurl = "http://%s:%s" % \ 
    289                                (os.environ.get("CUPS_SERVER", "localhost"), \ 
     289                               (os.environ.get("CUPS_SERVER") or "localhost", \ 
    290290                                os.environ.get("IPP_PORT", "631")) 
    291291            self.logdebug("Querying CUPS server at %s" % cupsurl)