ocssw
V2022
|
rewrite_seadas_config Namespace Reference
Functions | |
def | rewrite_seadas_config (seadas_config, install_dir) |
def | main () |
Detailed Description
Rewrite the seadas configuration file (usually $SEADAS/config/seadas.config), changing the value of the seadas.ocssw.root line to a value passed in via the command line call.
Function Documentation
◆ main()
def rewrite_seadas_config.main | ( | ) |
Definition at line 32 of file rewrite_seadas_config.py.
◆ rewrite_seadas_config()
def rewrite_seadas_config.rewrite_seadas_config | ( | seadas_config, | |
install_dir | |||
) |
Reads the input file then writes it to a temporary file, changing the appropriate entry. Then it copies the temporary file over the original.
Definition at line 13 of file rewrite_seadas_config.py.