Changeset 603 for trunk/email2trac.py.in


Ignore:
Timestamp:
08/30/12 10:55:56 (12 years ago)
Author:
bas
Message:

fixed an error in saving attachments on windows platformss, closes #300

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r599 r603  
    714714        ## Determine max filename lenght
    715715        #
    716         filemax_length = os.pathconf('/', os.pathconf_names['PC_NAME_MAX'])
     716        try:
     717            filemax_length = os.pathconf('/', 'PC_NAME_MAX')
     718        except AttributeError, detail:
     719            filemax_lenght = 240
    717720
    718721        if len(quote_format) <= filemax_length:
Note: See TracChangeset for help on using the changeset viewer.