Difference between revisions of "Addon"

From Light Forge Wiki
Jump to: navigation, search
(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)")
 
(getDirectory())
 
Line 7: Line 7:
  
 
Usage:
 
Usage:
  path = addon.getDirectory()
+
<syntaxhighlight lang=python>
  print(path)
+
path = addon.getDirectory()
 +
print(path)
 +
</syntaxhighlight>

Latest revision as of 18: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)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox