shell.setPath
The Shellpath is a list of folders, where the shell are searching for programs. The directories are separated with :.
|
|||
| Add "/programs" to the Shellpath. | |||
| Code | <nowiki>
shell.setPath(shell.path()..":/programs")
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shell.setPath Function | |
|---|---|
|
Syntax shell.setPath(
| |
| Returns | nil |
| API | shell |
| Source | CC:Tweaked (source) |
Set the Shellpath.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.