Hi everyone, I've been setting up my own import converters as described in the Documentation. I keep my converters in $UserBaseDirectory/SystemFiles/Formats
. A custom FormatMappings.m
file in the same directory works as expected and redirects alternative format names to the correct converter, but ExtensionMappings.m
seems to have no effect at all.
My ExtensionMappings.m
file reads like this:
{
"*.vesta"->"VESTA",
"*.xtl"->"XTL"
}
The import converters themselves work just fine when I use them in the following form:
Import["file.xtl","XTL"]
Import["file.vesta","VESTA"]
However, if I understand the purpose of ExtensionMappings.m
at all, I should be able to do this successfully:
Import["file.xtl"]
Import["file.vesta"]
Even if these specific extensions usually default to import as "Text"
(as they seem to do), settings in $UserBaseDirectory
should override global defaults, shouldn't they? Is there another config file I need to have, or something specific I need to do within RegisterImport
?