mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 09:02:44 +08:00
13 lines
275 B
Python
13 lines
275 B
Python
import sys
|
|
|
|
_PYTZ_IMPORTED = False
|
|
|
|
|
|
def pytz_imported():
|
|
"""Detects whether or not pytz has been imported without importing pytz."""
|
|
global _PYTZ_IMPORTED
|
|
|
|
if not _PYTZ_IMPORTED and "pytz" in sys.modules:
|
|
_PYTZ_IMPORTED = True
|
|
|
|
return _PYTZ_IMPORTED
|