Changeset 3345

Show
Ignore:
Timestamp:
01/11/10 10:36:13 (10 years ago)
Author:
justinc
Message:

Fix for #814.

Files:
1 modified

Legend:

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

    r3329 r3345  
    221221  try: 
    222222    # Create path if it doesn't exist. 
    223     if not os.path.isdir(os.path.dirname(generatedfilename)): 
     223    # JAC: due to #814, we check for the empty directory too... 
     224    if os.path.dirname(generatedfilename) != '' and not os.path.isdir(os.path.dirname(generatedfilename)): 
    224225      os.makedirs(os.path.dirname(generatedfilename)) 
    225226    fh = open(generatedfilename, "w")