current filename? - how can I get the current filename (i.e. lua filename) programmatically?

current filename? - how can I get the current filename (i.e. lua filename) programmatically? Is this possible? (i.e. the filename of the file for which my code fetching it is running within)

[import]uid: 140210 topic_id: 29159 reply_id: 329159[/import]

If you are using storyboard you can call storyboard.getScene(), if not then I don’t think you can. [import]uid: 164950 topic_id: 29159 reply_id: 117252[/import]

thanks - hadn’t thought about the storyboard method [import]uid: 140210 topic_id: 29159 reply_id: 117262[/import]

I assume this is for debugging?
You can have constants in each module.

local myName = “Main Module”

If each module is considered a class in itself, then the myModule returns the name of the ‘class’ in which the code resides. [import]uid: 108660 topic_id: 29159 reply_id: 117290[/import]

hi jeff472 - wasn’t for debugging in this case - was to allow me to push the DRY software design concept (don’t repeat yourself) [import]uid: 140210 topic_id: 29159 reply_id: 117324[/import]