[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: detect if the current file is the main file ?
- From: Mildred <ml.mildred593@...>
- Date: Sun, 14 May 2006 21:36:26 +0200
Hi,
I know in python it is possible to detect if a file is used as a module
or used as the main programm. And if it is run as the main programm run
a main function.
Is it possible to do the same with lua ? I tried with some
debug functions without success.
Thanks
Mildred
--
Mildred <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]