question

dewitpj avatar image

Allow local override of code ?

Hi,


What would be the chances of getting the Venus OS to allow local overrides of code ?


I am thinking along the lines of a file called "local_bla.py" that will replace "bla.py", or perhaps a directory called "local" in each directory. The bottom line here is to allow replacement/enhancement of features when said features are not going to be GPL'ed

Venus OS
1 comment
10 |3000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

It would be up to the integrator to ensure that files are replaced when the OS is updated :)

1 Answer
mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Hi, you can do that already: make a script that copies your files over the original ones. Use rc.local for that, you can store that file as well as your modified versions on the data partition.


how rc.local works us documented in the root access document.

1 comment Share
10 |3000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Ah yes - I forgot about that :)