From b2c85677f3192f2873c43a05b2d297fce6512acf Mon Sep 17 00:00:00 2001 From: George McCabe Date: Thu, 6 May 2021 17:08:43 -0600 Subject: [PATCH] cast PosixPath to string to prevent crash when using Python 3.8.10 --- metplus/wrappers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metplus/wrappers/__init__.py b/metplus/wrappers/__init__.py index a099750bcf..75917eeab5 100644 --- a/metplus/wrappers/__init__.py +++ b/metplus/wrappers/__init__.py @@ -27,7 +27,7 @@ globals()[attribute_name] = attribute # iterate through the modules in the current package -package_dir = Path(__file__).resolve().parent +package_dir = str(Path(__file__).resolve().parent) for (_, module_name, _) in iter_modules([package_dir]): # skip import of plot wrappers if they are not enabled