diff --git a/product/ERP5Type/Core/Component.py b/product/ERP5Type/Core/Component.py index ec8df89e7bce8d8a215408b37a3f811e893e3154..79d409bcee201b032a845b28235f8d39b091c4ce 100644 --- a/product/ERP5Type/Core/Component.py +++ b/product/ERP5Type/Core/Component.py @@ -28,6 +28,9 @@ # ############################################################################## +# There is absolutely no reason to use relative imports when loading a Component +from __future__ import absolute_import + from AccessControl import ClassSecurityInfo from Products.ERP5Type import Permissions from Products.ERP5Type.Base import Base diff --git a/product/ERP5Type/dynamic/component_class.py b/product/ERP5Type/dynamic/component_class.py index bdc3d090a9b88c9e4f3ca7b153ce16d5d045ea5e..14e2851f4fb36291d199aa879b9964cdd684747c 100644 --- a/product/ERP5Type/dynamic/component_class.py +++ b/product/ERP5Type/dynamic/component_class.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2012 Nexedi SARL and Contributors. All Rights Reserved. @@ -26,6 +27,9 @@ # ############################################################################## +# There is absolutely no reason to use relative imports when loading a Component +from __future__ import absolute_import + import sys import threading