Skip to content

Commit 89f9b77

Browse files
committed
skip generated python files in pkg-gen templates
1 parent 2934fd3 commit 89f9b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype2pydra/pkg_gen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def copy_ignore(_, names):
715715

716716
# Replace "CHANGEME" string with pkg name
717717
for fspath in pkg_dir.glob("**/*"):
718-
if fspath.is_dir():
718+
if fspath.is_dir() or fspath.suffix in (".pyc", ".pyo", ".pyd"):
719719
continue
720720
with open(fspath) as f:
721721
contents = f.read()

0 commit comments

Comments
 (0)