mirror of
https://github.com/ldmud/ldmud
synced 2026-08-12 14:26:05 -04:00
It's now possible to specify a Python package with a __main__ module to execute at startup.
23 lines
352 B
C
23 lines
352 B
C
#include "/inc/base.inc"
|
|
|
|
void run_test()
|
|
{
|
|
#ifdef __PYTHON__
|
|
msg("\nRunning test for Python startup archive:\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;
|
|
}
|