[Quick Start][Fixed] Problems scanning dirs without enough privileges

This commit is contained in:
Salvador E. Tropea 2024-01-15 11:17:39 -03:00
parent 0edf374670
commit db8acd1258
2 changed files with 12 additions and 7 deletions

View File

@ -107,7 +107,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Note that JLCPCB BoM and Position files aren't included anymore, they are
uploaded separately.
- Quick Start:
- Now we generate if for projects, not separated files.
- Now we generate only for projects, not separated files.
This avoids problems for sub-sheets in separated dirs.
- Diff:
- When *check_zone_fills* is enabled now we do a refill for the boards
@ -151,7 +151,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- PCB Print:
- Issues when forcing the board edge and using scaling (#532)
- Text not searchable when using newer rsvg-convert tools (#552)
- Quick Start:
- Problems with KiCad 6+ files using KiCad 5 names for layers
- Problems scanning dirs without enough privileges
## [1.6.3] - 2023-06-26
### Added

View File

@ -1041,11 +1041,14 @@ def generate_targets(config_file):
def _walk(path, depth):
""" Recursively list files and directories up to a certain depth """
depth -= 1
with os.scandir(path) as p:
for entry in p:
yield entry.path
if entry.is_dir() and depth > 0:
yield from _walk(entry.path, depth)
try:
with os.scandir(path) as p:
for entry in p:
yield entry.path
if entry.is_dir() and depth > 0:
yield from _walk(entry.path, depth)
except Exception as e:
logger.debug(f'Skipping {path} because {e}')
def setup_fonts(source):