Ignore:
Timestamp:
3 Feb 2010, 08:15:59 (15 years ago)
Author:
uli
Message:

Split filenames correctly or we run into trouble when filenames with
several dots come into play.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/datacenter.py

    r4961 r4980  
    163163
    164164        if basename.endswith('.pending.csv'):
    165             maybe_basename = "%s.csv" % basename.split('.', 2)[0]
     165            maybe_basename = "%s.csv" % basename.rsplit('.', 2)[0]
    166166            maybe_src = os.path.join(unfinished_dir, maybe_basename)
    167167            if os.path.isfile(maybe_src):
Note: See TracChangeset for help on using the changeset viewer.