File: ezmlm-browse.c

package info (click to toggle)
ezmlm-browse 0.6-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 252 kB
  • ctags: 217
  • sloc: python: 917; makefile: 54; sh: 25; php: 20; ansic: 13
file content (14 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <unistd.h>
#include "conf_home.c"
#include "auto_python.c"

int main(void)
{
  const char* args[] = { auto_python, "-c",
			 "import sys; "
			 "sys.path[0]=sys.argv[1]; "
			 "import main; "
			 "main.main()", conf_home, 0 };
  if (chdir(conf_home) == 0) execv(auto_python, (char**)args);
  return 111;
}