Skip to content

Commit d9f1f09

Browse files
authored
fix(sample-app): exclude all __pycache__ in cdk.json (#27191)
Following the cdk workshop for python I noticed that `cdk watch` watches files from `__pycache__`. This is an attempt to fix that. Steps to reproduce: 1. `cdk init sample-app --language python` 2. `cdk bootstrap` 3. Run `cdk watch` and notice that `__pycache__` folders are being watched: ``` 'watch' is observing directory 'cdk_workshop/__pycache__' for changes 'watch' is observing the file 'cdk_workshop/cdk_workshop_stack.py' for changes 'watch' is observing the file 'cdk_workshop/__pycache__/__init__.cpython-311.pyc' for changes 'watch' is observing the file 'cdk_workshop/__pycache__/cdk_workshop_stack.cpython-311.pyc' for changes ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d41005e commit d9f1f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk/lib/init-templates/app/python/cdk.template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"requirements*.txt",
99
"source.bat",
1010
"**/__init__.py",
11-
"python/__pycache__",
11+
"**/__pycache__",
1212
"tests"
1313
]
1414
}

0 commit comments

Comments
 (0)