pyblish-base icon indicating copy to clipboard operation
pyblish-base copied to clipboard

fixed issue with plugins on windows platform

Open SegaMegaDrive16 opened this issue 7 years ago • 5 comments

Plugins could`t be registered by register_plugins_path method

SegaMegaDrive16 avatar Jun 08 '17 17:06 SegaMegaDrive16

Thanks @GreenGoseWithFunnyHat, are you able to provide an example I could use to reproduce this problem? I'll use that to create a test for it, so the problem is automatically caught the next time it appears.

mottosso avatar Jun 09 '17 09:06 mottosso

I guess that windows plaform (tested on widnows 7 with different file editors) creates \r\n instead of \n on linux at the end of each string. ( I have found discussion about this, they say that MS-DOS chose CR+LF, and Windows inherited this. To catch this problem you need to test this on windows 7 platfrom ( i guess in 10th version it was fixed ) or replace '\n' to '\r\n' in you plugins file. If you need i can attach file with \r\n at the end of strings.

SegaMegaDrive16 avatar Jun 09 '17 12:06 SegaMegaDrive16

Would it be possible to create a small sample, and upload it here? That way I can include this in the automated test suite.

mottosso avatar Jun 09 '17 13:06 mottosso

If you need i can attach file with \r\n at the end of strings.

Yes, please. :)

mottosso avatar Jun 09 '17 13:06 mottosso

@GreenGoseWithFunnyHat have you been able to find some time to set up a reproducable example and maybe also implement a test that ensures it's safe with these commits?

BigRoy avatar Feb 20 '18 11:02 BigRoy