- Work around Cygwin Python's silly fiction that it's using a
case-sensitive file system.
+ - More robust handling of data in VCComponents.dat.
+
From Kerim Borchaev:
- Fix a typo in a msvc.py's registry lookup: "VCComponents.dat", not
found = 0
while line:
line.strip()
- if found == 1:
- (key, val) = line.split('=',1)
- key = key.replace(' Dirs','')
- dirs[key.upper()] = val
if line.find(r'[VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories]') >= 0:
found = 1
- if line == '':
+ elif line == '' or line[:1] == '[':
found = 0
+ elif found == 1:
+ kv = line.split('=', 1)
+ if len(kv) == 2:
+ (key, val) = kv
+ key = key.replace(' Dirs','')
+ dirs[key.upper()] = val
line = f.readline()
f.close()
else: