Skip to content

export_khiops_dictionary_file fails to export when directory does not exist #557

@n-voisine

Description

@n-voisine

The function export_khiops_dictionary_file throws a FileNotFoundError when attempting to export the dictionary to a path where the target directory does not exist. This issue occurs on both Windows and Linux systems.

error message : FileNotFoundError: [Errno 2] No such file or directory: '\log\dico_in.kdic'

like other functions this function should automatically create the necessary directories before attempting to write the file
solution : call os.makedirs(os.path.dirname(filepath), exist_ok=True) before to write file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Size/HoursVery shortStatus/ReadyForDevThe issue is ready to be developed or to be investigated deeply

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions