|
|
|
|
|
by saco
2240 days ago
|
|
I don't get how this can be used anywhere except when you have 2 deployment targets which seems really limited. Also checking for environments is done weirdly, why not use if 'ENV' not in os.environ: instead of ENV = os.environ.get("ENV", None) if ENV is None: |
|
Now, it’s not really an issue here with environment variables. But in general, doing assignment and then walking through the cases is safer.