Update python site-packages.

Added MarkupSafe, Jinja2, itsdangerous, Werkzeug, click, flask.
This commit is contained in:
pranav-1711 2022-03-06 14:02:26 +05:30
parent 8d9a94b5d6
commit 87717aad33
67 changed files with 25256 additions and 162 deletions

View file

@ -714,7 +714,7 @@ def get_root_path(import_name: str) -> str:
# Module already imported and has a file attribute. Use that first.
mod = sys.modules.get(import_name)
if mod is not None and hasattr(mod, "__file__"):
if mod is not None and hasattr(mod, "__file__") and mod.__file__ is not None:
return os.path.dirname(os.path.abspath(mod.__file__))
# Next attempt: check the loader.