Skip to content

Commit

Permalink
update load_local_pkg exclude regex with regtest pattern (#8350)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Mar 14, 2024
1 parent 0671c7b commit 155af54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwst/stpipe/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')
Expand Down

0 comments on commit 155af54

Please sign in to comment.