Changeset 325
- Timestamp:
- Fri Nov 16 16:53:50 2007
- Files:
-
- trunk/mf.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/mf.py
r306 r325 15 15 # along with this program; if not, write to the Free Software 16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 17 import sys, string, os, imp, marshal 17 import sys, string, os, imp, marshal, dircache 17 17 18 18 #=======================Owners==========================# … … 27 27 STRINGTYPE = type('') 28 28 29 if not os.environ.has_key('PYTHONCASEOK') and sys.version_info >= (2, 1): 30 def caseOk(filename): 31 files = dircache.listdir(os.path.dirname(filename)) 32 return os.path.basename(filename) in files 33 else: 34 def caseOk(filename): 35 return True 36 37 29 38 class Owner: 30 39 def __init__(self, path): … … 56 65 pass 57 66 else: 67 # Check case 68 if not caseOk(attempt): 69 continue 58 70 if typ == imp.C_EXTENSION: 59 71 return ExtensionModule(nm, attempt)
