jumpserver/apps/common/local.py

10 lines
147 B
Python
Raw Normal View History

2019-06-25 06:32:25 +00:00
# -*- coding: utf-8 -*-
#
from werkzeug.local import Local
thread_local = Local()
def _find(attr):
return getattr(thread_local, attr, None)