aws-deadline / deadline-cloud-for-houdini

AWS Deadline Cloud for Houdini
Apache License 2.0
12 stars 10 forks source link

fix: Windows pathmapping rules #135

Closed lucaseck closed 5 months ago

lucaseck commented 5 months ago

What was the problem/requirement? (What/Why)

It was noticed that absolute Windows paths weren't getting mapped at all on the workers. This is because the pathmapping rules were being changed to using double backslashes \\ as part of a dictionary to string conversion which when set in HOUDINI_PATHMAP Houdini converts them internally into double forward slashes //. This meant that the paths would not be mapped as Houdini uses a single forward slash / as the separator when selecting files and folders on Windows.

What was the solution? (How)

All rules now have a find/replace done on them for \\->/

What is the impact of this change?

Windows absolute paths are now mapped correctly by the adaptor

How was this change tested?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.