Staging
v0.5.1
https://github.com/python/cpython
Revision 3e73a011d9c04b3460c05c2d026d2d8964b79cf3 authored by Fredrik Lundh on 13 October 2004, 18:19:18 UTC, committed by Fredrik Lundh on 13 October 2004, 18:19:18 UTC
want to use pywin32 instead of _subprocess, you have to edit the file.
1 parent 22dcf66
Raw File
Tip revision: 3e73a011d9c04b3460c05c2d026d2d8964b79cf3 authored by Fredrik Lundh on 13 October 2004, 18:19:18 UTC
Replace dynamic try/except with "if 0", to keep py2exe happy. If you
Tip revision: 3e73a01
getmtime.c

/* Subroutine to get the last modification time of a file */

/* (A separate file because this may be OS dependent) */

#include "Python.h"
#include "pyconfig.h"

time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
{
	struct stat st;
	if (fstat(fileno(fp), &st) != 0)
		return -1;
	else
		return st.st_mtime;
}
back to top