view Python/getplatform.c @ 55132:e9fc8947c49a legacy-trunk

Issue 6070: when creating a compiled file, after copying the mode bits, on posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N.
author R. David Murray <rdmurray@bitdance.com>
date Tue, 07 Jul 2009 01:06:13 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}