220 posts
Location
Germany
Posted 14 March 2013 - 07:31 AM
Hello,
I want a program to start in a folder called "/svdragster/programs/" anywhere where I type its name, like CraftOS programs.
Is that possible, or do I need to make a fake shell :P/>
148 posts
Posted 14 March 2013 - 07:50 AM
shell.run("/svdragster/programs/whatever")
or
os.loadAPI( "/svdragster/programs/whatever"),
if I recall correctly.
8543 posts
Posted 14 March 2013 - 07:58 AM
You'll want to look into shell.setPath.
220 posts
Location
Germany
Posted 15 March 2013 - 05:13 AM
shell.setPath(shell.getPath()..":"..("/svdragster/programs"))
doesn't work, attempt to call nil
7508 posts
Location
Australia
Posted 15 March 2013 - 05:31 AM
shell.path not shell.getPath … got to love inconsistent method names :P/>
220 posts
Location
Germany
Posted 15 March 2013 - 05:41 AM
shell.path not shell.getPath … got to love inconsistent method names :P/>
:3 thanks