Changeset 1190 for pykota

Show
Ignore:
Timestamp:
11/18/03 15:11:07 (21 years ago)
Author:
jalet
Message:

Small fix for bizarre urls

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1186 r1190  
    2424# 
    2525# $Log$ 
     26# Revision 1.9  2003/11/18 14:11:07  jalet 
     27# Small fix for bizarre urls 
     28# 
    2629# Revision 1.8  2003/11/15 14:26:44  jalet 
    2730# General improvements to the documentation. 
     
    124127            fulldevice_uri = os.environ.get("DEVICE_URI", "") 
    125128            device_uri = fulldevice_uri[len("cupspykota:"):] 
     129            if device_uri.startswith("//") : 
     130                device_uri = device_uri[2:] 
    126131            os.environ["DEVICE_URI"] = device_uri 
    127132            # TODO : check this for more complex urls than ipp://myprinter.dot.com:631/printers/lp