Difference between revisions of "Addon"
From Light Forge Wiki
Chris Monson (Talk | contribs) (Created page with "=Methods= ==getDirectory()== '''getDirectory() As String''' This function returns the path of the current addon's folder. Usage: path = addon.getDirectory() print(path)") |
Chris Monson (Talk | contribs) (→getDirectory()) |
||
| Line 7: | Line 7: | ||
Usage: | Usage: | ||
| − | + | <syntaxhighlight lang=python> | |
| − | + | path = addon.getDirectory() | |
| + | print(path) | ||
| + | </syntaxhighlight> | ||
Latest revision as of 17:28, 9 May 2013
[edit] Methods
[edit] getDirectory()
getDirectory() As String
This function returns the path of the current addon's folder.
Usage:
path = addon.getDirectory() print(path)