Jump to content




Global Programs / APIs

computer

3 replies to this topic

#1 CRUGG

  • Members
  • 26 posts
  • Locationpropably in front of his PC

Posted 31 May 2019 - 08:38 AM

Hey there! Is it possible to globally install Programs and APIs from Code? I don't want to externally move the Code into the ROM Folder.
I know that you can set the program folder using
shell.setPath("/myPrograms/")
But this would not let me use the programs in /rom anymore and it would not let me be allowed to have seperate Folders for apis, programs etc.
I think the easiest way would be to just have a complete clone of the folder Structure of Rom somewhere and have both active, if that is possible.

#2 Lupus590

  • Members
  • 1,976 posts
  • LocationUK

Posted 31 May 2019 - 11:33 AM

Get the path first and then set the new path to be the old path and your new path.

The wiki for the setpath function might explain it better than me at the moment

#3 EveryOS

    Resident Necromancer

  • Members
  • 566 posts
  • LocationBOO!!

Posted 31 May 2019 - 02:30 PM

shell.setPath(shell.path()..";myPrograms/;")


#4 Luca_S

  • Members
  • 387 posts
  • LocationGermany

Posted 02 June 2019 - 04:48 AM

View PostEveryOS, on 31 May 2019 - 02:30 PM, said:

shell.setPath(shell.path()..";myPrograms/;")

According to the wiki the separator is ":", the path should be absolute and the trailing slash can be removed(I would suggest doing so to keep to the style of the existing path). Also the existing path does not end with a column, so neither should the new one:
shell.setPath(shell.path()..":/myPrograms")






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users