forked from booya-at/OpenGlider
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels