ldmud/test/t-python-dir/master.c
Alexander Motzkau 44ea2fb3a8 Added support for Python startup packages
It's now possible to specify a Python package with a __main__ module to
execute at startup.
2022-06-26 15:47:01 +02:00

23 lines
356 B
C

#include "/inc/base.inc"
void run_test()
{
#ifdef __PYTHON__
msg("\nRunning test for Python startup directory:\n"
"------------------------------------------\n");
#if __EFUN_DEFINED__(startup_called)
shutdown(0);
#else
shutdown(1);
#endif
#else
shutdown(0);
#endif
}
string *epilog(int eflag)
{
run_test();
return 0;
}