diff options
| author | Jaime Resano <Jaime.Resano-Aisa@qt.io> | 2024-11-19 14:30:52 +0100 |
|---|---|---|
| committer | Jaime Resano <Jaime.Resano-Aisa@qt.io> | 2024-11-20 16:54:48 +0100 |
| commit | da62bfd955307683c0f1e4c9479169e9156393f3 (patch) | |
| tree | 1707be5950ae68a14db9ee0e57d0c7625ac8702f /sources/pyside-tools/deploy_lib/dependency_util.py | |
| parent | 5b51fb868f3c9a0550ef1ec688d1e6c77cc9e796 (diff) | |
Avoid including dev folders in deployed executable
The .git, __pycache__ and .vscode folders should not be included in the
deployed executable. Windows, it causes permission errors when the
cleanup is performed
Pick-to: 6.8
Task-number: PYSIDE-1612
Change-Id: Icfcbe6aa0d3cb2b869a0bb9a68dbe8d1e1d9a5ec
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/dependency_util.py')
| -rw-r--r-- | sources/pyside-tools/deploy_lib/dependency_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside-tools/deploy_lib/dependency_util.py b/sources/pyside-tools/deploy_lib/dependency_util.py index 35973445c..af7a604d5 100644 --- a/sources/pyside-tools/deploy_lib/dependency_util.py +++ b/sources/pyside-tools/deploy_lib/dependency_util.py @@ -22,7 +22,7 @@ def get_py_files(project_dir: Path, extra_ignore_dirs: list[Path] = None, projec """Finds and returns all the Python files in the project """ py_candidates = [] - ignore_dirs = ["__pycache__", *DEFAULT_IGNORE_DIRS] + ignore_dirs = DEFAULT_IGNORE_DIRS.copy() if project_data: py_candidates = project_data.python_files |
