2025-07-01
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
|
||||
def preload_modules() -> None:
|
||||
"""Pre-load the datetime module from a wheel so that the API can find it."""
|
||||
import sys
|
||||
|
||||
if "dateutil" in sys.modules:
|
||||
return
|
||||
|
||||
from . import wheels
|
||||
|
||||
wheels.load_wheel_global("six", "six")
|
||||
wheels.load_wheel_global("dateutil", "python_dateutil")
|
||||
Reference in New Issue
Block a user