What's new

KSP: How to know the path to instrument's data folder?

Fredeke

Senior Member
Hi again

Curiously, while save_array and load_array can work with the instrument's Data folder (which is in the same folder as the instrument), save_array_str and load_array_str require an absolute path !

An absolute path would mean the script would stop working if the instrument is moved to another folder (let alone from a PC to a Mac)

So:
- Is there any way to provide a relative path instead ? If so, I haven't found how.
- Is there a way to get the absolute path to the instrument's folder from within the script?
- Otherwise, is there another solution?

Thanks
 
Top Bottom