view Python/getplatform.c @ 76312:9e8cbf07068a

Handle importing pkg.mod by executing __import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting).
author Brett Cannon <brett@python.org>
date Sat, 14 Apr 2012 21:50:00 -0400
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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