donkeycar icon indicating copy to clipboard operation
donkeycar copied to clipboard

Add ability to read config variables from env

Open altexdim opened this issue 4 years ago • 3 comments

Add ability to read config variables from env

Usage example:

DONKEYCAR_CFG_MAX_LOOPS=2000 python manage.py drive

this command will override config variable MAX_LOOPS and set it to 2000 this is the equivalent of having MAX_LOOPS=2000 in the myconfig.py

altexdim avatar Sep 09 '21 23:09 altexdim

@altexdim - do you want to address the comments so we can merge this?

DocGarbanzo avatar Nov 13 '21 20:11 DocGarbanzo

Yes, absolutely, thank you for the review, I'll fix it as I find some time

altexdim avatar Nov 13 '21 21:11 altexdim

@DocGarbanzo if we like this feature (I like it), we should change that to f-string ourselves or merge as is.

Ezward avatar Oct 26 '22 00:10 Ezward