Mapped paths not working for aux files in Python API?

We’ve set up path mapping in repository options. When we submit via the Python API to the Web Service, using the Python plugin:

  • the ScriptFile attribute on the plugin is mapped as expected
  • the auxiliary files are not mapped, and the submission fails with “Submission Result: Error: could not find Auxiliary submission file”.

We’re able to hack our way around the failure by putting this in the submission script:

    mapped_aux_files = deadline_conn.MappedPaths.MapPaths(aux_files, 'Linux')
    mapped_aux_files = [path.replace('\\', '/') for path in mapped_aux_files]

Is this the best way to do it, or is there a nicer approach where this isn’t necessary?