From e6c6aaed09e371df182f60da7fafe7346d4326f8 Mon Sep 17 00:00:00 2001 From: GreenGoseWithFunnyHat Date: Thu, 8 Jun 2017 20:33:01 +0300 Subject: [PATCH] fixed issue when trying to load plugins created on windows platform --- pyblish/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyblish/plugin.py b/pyblish/plugin.py index 10b84a92..2638899d 100644 --- a/pyblish/plugin.py +++ b/pyblish/plugin.py @@ -1265,7 +1265,7 @@ def discover(type=None, regex=None, paths=None): try: with open(abspath) as f: - six.exec_(f.read(), module.__dict__) + six.exec_(f.read().replace('\r', ''), module.__dict__) # Store reference to original module, to avoid # garbage collection from collecting it's global