dicogis.export.output_path module¶
Default output path of an inventory, shared by the CLI and the GUI.
- dicogis.export.output_path.determine_output_path(output_path, output_format='excel', input_folder=None, pg_services=None)¶
Get the output path depending on options passed.
- Parameters:
- Raises:
ValueError – if output format is not supported
- Return type:
- Returns:
- output path to use. A folder if output_format==’json’,
a file if output_format==’excel’
- dicogis.export.output_path.match_output_path_to_format(output_path, output_format)¶
Adapt an output path to an output format: an Excel workbook is a .xlsx file, a JSON export a folder.
Only the .xlsx extension is added or removed, so a name the user typed is otherwise kept as is (including dots in a folder name).
- Parameters:
- Raises:
ValueError – if output format is not supported
- Return type:
- Returns:
output path matching the output format