Changeset 78

Show
Ignore:
Timestamp:
Wed Jul 26 14:55:00 2006
Author:
jpellerin
Message:

Updated absfile to accept list arguments, to work with multiple working dirs.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/nose/util.py

    r76 r78  
    39 39     if where is None:  
    40 40         where = os.getcwd()  
      41     if isinstance(where, list) or isinstance(where, tuple):  
      42         for maybe_path in where:  
      43             maybe_abs = absfile(path, maybe_path)  
      44             if maybe_abs is not None:  
      45                 return maybe_abs  
      46         return None  
    41 47     if not os.path.isabs(path):  
    42 48         path = os.path.normpath(os.path.abspath(os.path.join(where, path)))