From 155af548a4282414c8a6dc9433dcd8588fc60762 Mon Sep 17 00:00:00 2001 From: Brett Graham Date: Thu, 14 Mar 2024 15:22:10 -0400 Subject: [PATCH] update load_local_pkg exclude regex with regtest pattern (#8350) --- jwst/stpipe/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwst/stpipe/utilities.py b/jwst/stpipe/utilities.py index 4de0240779..f75af200b7 100644 --- a/jwst/stpipe/utilities.py +++ b/jwst/stpipe/utilities.py @@ -97,7 +97,7 @@ def load_local_pkg(fpath): package_fpath_len = len(package_fpath) + 1 try: for module_fpath in folder_traverse( - fpath, basename_regex=r'[^_].+\.py$', path_exclude_regex='tests' + fpath, basename_regex=r'[^_].+\.py$', path_exclude_regex='(tests)|(regtest)' ): folder_path, fname = os.path.split(module_fpath[package_fpath_len:]) module_path = folder_path.split('/')