Changeset 3329

Show
Ignore:
Timestamp:
01/05/10 14:29:57 (10 years ago)
Author:
cemeyer
Message:

#799: In repyhelper, create the path we want to use before trying to use it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/portability/repyhelper.py

    r2623 r3329  
    220220  #the original data and translations 
    221221  try: 
     222    # Create path if it doesn't exist. 
     223    if not os.path.isdir(os.path.dirname(generatedfilename)): 
     224      os.makedirs(os.path.dirname(generatedfilename)) 
    222225    fh = open(generatedfilename, "w") 
    223226  except IOError, e: