Fix error path in platform name detection.

This commit is contained in:
Bastian Kleineidam 2011-04-20 20:36:35 +02:00
parent 727f318344
commit b669d34073

View file

@ -442,7 +442,7 @@ elif os.name == 'nt':
progvar = "%ProgramFiles%"
architecture = "x86"
else:
raise ValueError("Unsupported %PLATNAME% variable value %r" % platform)
raise ValueError("Unsupported %%PLATNAME%% variable value %r" % platform)
attrs = (os.path.expandvars(progvar), architecture)
crtdir = r'%s\Microsoft Visual Studio 9.0\VC\redist\%s\Microsoft.VC90.CRT' % attrs
data_files.append(('Microsoft.VC90.CRT', glob.glob(r'%s\*.*' % crtdir)))