In cache.py; I get a circular import cache.py → config.py → autre_module.py → cache.py
Works better like that:
openglider/utils/cache.py
class CacheDescriptor:
def get(self, instance, owner):
# Import local pour éviter les imports circulaires
from openglider.config import config
if not config["caching"]:
return self.func(instance)
In cache.py; I get a circular import cache.py → config.py → autre_module.py → cache.py
Works better like that:
openglider/utils/cache.py
class CacheDescriptor:
def get(self, instance, owner):
# Import local pour éviter les imports circulaires
from openglider.config import config