Shell.path

From ComputerCraft Wiki
Jump to: navigation, search
Grid Redstone.png  Function shell.path
Returns the path (yes, the normal path you find in computers)
Syntax shell.path()
Returns string path
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
The path is just a collection of loaded programs on start from native CC,so here's an example with an advanced computer + http enabled.
Code
shell.path()
Output .:/rom/programs:/rom/programs/computer:/rom/programs/http:/rom/programs/color



Grid paper.png  Example
And here's one from a normal computer with http enabled.
Code
shell.path()
Output .:/rom/programs:/rom/programs/computer:/rom/programs/http
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox