This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Xiph's profile picture

Question regarding sPath

Started by Xiph, 18 January 2013 - 02:31 AM
Xiph #1
Posted 18 January 2013 - 03:31 AM
Hi my mod is zipped so when I would like to make changes to any of my API's I have to rezip the whole mod again and reload the server.

In the startup file I've found the following:



if turtle then
        sPath = sPath..":/rom/programs/turtle"
else

What I would like to do is to add a folder to sPath which is located outside the zip folder. However /rom/ seems to be in the root folder of this virtual file system. How do I get above this?
Lyqyd #2
Posted 18 January 2013 - 03:42 AM
You can't. Not without using a peripheral or something to mount up a directory it wouldn't usually be looking at.
Orwell #3
Posted 18 January 2013 - 04:22 AM
While this is definitely a bad idea, you can use soft symbolic links if you use the unzipped method of installing ComputerCraft to achieve the same effect.