Difference between revisions of "Help.path"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
(Update description and use type template)
 
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=help.path
 
|name=help.path
|args=
 
 
|api=help
 
|api=help
|returns=[[string (type)|string]] path of help API
+
|returns={{Type|string}} the path list, separated by colons
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Returns the current path for the help API
+
|desc=Returns the list of locations the API will look in for help files. This is returned in the form of a string containing multiple search paths separated by colons.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Prints the current path for the help API
+
|desc=Prints the current path list for the help API.
 
|code=print(help.path())
 
|code=print(help.path())
 
|output=/rom/help
 
|output=/rom/help

Latest revision as of 19:53, 23 April 2013


Grid Redstone.png  Function help.path
Returns the list of locations the API will look in for help files. This is returned in the form of a string containing multiple search paths separated by colons.
Syntax help.path()
Returns string the path list, separated by colons
Part of ComputerCraft
API help

Examples

Grid paper.png  Example
Prints the current path list for the help API.
Code
print(help.path())
Output /rom/help