First of all I went of course to the wiki ( doesn't do everyone that? ):
os.loadAPI( name ) Loads a Lua script as an API in it's own namespace (see example). It will be available to all programs that run on the terminal.
So note the variable must be name not path. So let's say we are in the same folder as the API then we use:
os.loadAPI( "myfunction" ) print( myfunction.printsomething() ) os.unloadAPI( "myfunction" )
And if I am not in the same folder, how would I use it then?
I think this is wrong:
os.loadAPI( "somedir/myfunction" ) print( somedir/myfunction.printsomething() ) -- This is where it confuses me os.unloadAPI( "somedir/myfunctions" )
So if you guys can help me with this, that would be very appreciated
Thanks, Engineer












