question

dewitpj avatar image
dewitpj asked

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
2 |3000

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

dewitpj avatar image dewitpj commented ·

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

0 Likes 0 ·
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
2 |3000

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

dewitpj avatar image dewitpj commented ·

Ah yes - I forgot about that :)

0 Likes 0 ·

Related Resources