Hey Justin,

That is the expected outcome of the regex alone, but I found quite by
accident that the regex sub written this way, iters over every character
individually within glob so each character is found in the bad case string
and the re callback \1 substitutes the found char with whats actually on
disk.



On Sat, Nov 5, 2016, 8:54 AM David Moulder <[email protected]> wrote:

I had to do something similar at freestyle games.  As a games company we
were on windows and framestore was linux.  So i had to garantee the case of
the wondows file paths.  Instead of doing this type of check.  Everyone had
to make assests in maya via our project manager.  It garenteed lower case
file paths.  The publish step failed if maya file paths were invalid and
offered 1 click fixes for most checks.

Not an answer realy, just an alternate way of coping this linux vs windows
path issues.

On 5 Nov 2016 10:33, "Justin Israel" <[email protected]> wrote:



On Sat, 5 Nov 2016, 10:27 PM Marcus Ottosson <[email protected]> wrote:

Sorry if this was implied somewhere, but are you aware that on Windows
paths are case-insensitive? That is, it makes no guarantees on preserving
case and treats c:\tHIS the same as c:\This.​

I think it was implied in the original question

"I'd like to confirm if the paths written in maya (on windows) has the
correct character case. In otherwords I need to verify the path is good for
use on Linux
"

I understood that as it not being a problem on Windows itself because of
the case insensitive paths. But not working for those files when accessed
through Linux because the paths no longer match case sensitive.

​

-- 
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBo3_%2BUstuMSUCOCJT7hf-Jw2ZkEwPw1Ok6ewTGFKhPFw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBo3_%2BUstuMSUCOCJT7hf-Jw2ZkEwPw1Ok6ewTGFKhPFw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0qr6B1bPtYjW6kj2RoYFTUU%3D5oBHkrqfaiUdC0VL-Kyg%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0qr6B1bPtYjW6kj2RoYFTUU%3D5oBHkrqfaiUdC0VL-Kyg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CABD4PkQmvE%3DMVqyHNctGEWu9JBTdYdcNxBO8qLjZfTGkv7FX3w%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CABD4PkQmvE%3DMVqyHNctGEWu9JBTdYdcNxBO8qLjZfTGkv7FX3w%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAJ4oLs6Q6tr%2BqCnsNJ3%2BX7r-EiD2BB%3DZOkMG6%2B%3DrGK%2Bu92SGZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to