Skip to content

Commit

Permalink
Fixing Glob Expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
hwf1324 committed Sep 9, 2024
1 parent 88be74a commit 27da639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/comInterfaces/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ To remedy this, the file is then processed by `comInterfaces_sconscript` to extr
name and replace the import statement with a more elaborate approach which includes a fallback
for the purposes of IDEs and tools.

To manually add files in `source/comInterfaces`, exclude them from the 'exclude' parameter of the 'Clean' function in `comInterfaces_sconscript`.
To manually add files in `source/comInterfaces`, exclude them from the `exclude` parameter of the `Glob` function in the `Clean` function in `comInterfaces_sconscript`.
This is because SCons removes files from `source/comInterfaces` during cleanup (`scons -c`).
4 changes: 2 additions & 2 deletions source/comInterfaces_sconscript
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ for k, v in COM_INTERFACES.items():


# When cleaning comInterfaces get rid of everything
# except for things starting with __ (e.g. __init__.py), and files tracked by Git
# except for the readme.md and __init__.py files tracked by Git
env.Clean(
Dir("comInterfaces"),
Glob("comInterfaces/[!_]*", exclude="comInterfaces/readme.md"),
Glob("comInterfaces/*", exclude=["comInterfaces/readme.md", "comInterfaces/__init__.py"]),
)

0 comments on commit 27da639

Please sign in to comment.