shell.setPath

The Shellpath is a list of folders, where the shell are searching for programs. The directories are separated with :.

ExampleSet the Shellpath
Add "/programs" to the Shellpath.
Code
<nowiki>
shell.setPath(shell.path()..":/programs")
  </nowiki>

shell.setPath
Function
Syntax
shell.setPath(
  • shellpath : string
)

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.