1

Can LUA tell if a script is being executed as a script or being called from within another lua file? I'm looking for a bit of lua code similar to python's:

if __name__ == "__main__":
   myfunction.run()

where I can execute myfunction.run() only if I'm calling executing the script as a standalone file.

Shejo284
  • 4,541
  • 6
  • 32
  • 44

0 Answers0