Ignore:
Timestamp:
2008-02-15T08:21:26+01:00 (16 years ago)
Author:
jrreid
Message:

Update lakewalker to automatically create directory to store wms images in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lakewalker/Lakewalker/lakewalker.py

    r6874 r6879  
    124124            top_right_xy = (bottom_left_xy[0] + options.tilesize, bottom_left_xy[1] + options.tilesize)
    125125            fname = options.wmslayer+"/landsat_%d_%d_xy_%d_%d.png" % (options.resolution, options.tilesize, bottom_left_xy[0], bottom_left_xy[1])
     126           
     127            if not os.path.exists(options.wmslayer+"/"):
     128              os.mkdir(options.wmslayer)
     129           
    126130            im = self.images.get(fname, None)
    127131            if im is None:
Note: See TracChangeset for help on using the changeset viewer.