diff options
author | jaseg <git@jaseg.de> | 2021-02-06 12:30:27 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-02-06 12:30:27 +0100 |
commit | 18d857668edc5d1900cfb62081d45de8b4d8c897 (patch) | |
tree | f3b53748dea6a33bdd32e214cd9e77a39b8d53d8 /gerbolyze/gerbolyze.py | |
parent | 1e9d0c62f99025e0985b272fe6f7749f265f0cc4 (diff) | |
download | gerbolyze-18d857668edc5d1900cfb62081d45de8b4d8c897.tar.gz gerbolyze-18d857668edc5d1900cfb62081d45de8b4d8c897.tar.bz2 gerbolyze-18d857668edc5d1900cfb62081d45de8b4d8c897.zip |
Small fixes, find svg-flatten in user pip install
Diffstat (limited to 'gerbolyze/gerbolyze.py')
-rwxr-xr-x | gerbolyze/gerbolyze.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerbolyze/gerbolyze.py b/gerbolyze/gerbolyze.py index c3107eb..b55c6e8 100755 --- a/gerbolyze/gerbolyze.py +++ b/gerbolyze/gerbolyze.py @@ -426,7 +426,7 @@ def load_side(side_matches): for layer, elems in layers.items(): if len(elems) > 1 and layer != 'drill': - raise SystemError(f'Multiple files found for layer {layer}: {", ".join(side_matches[layer]) }') + raise SystemError(f'Multiple files found for layer {layer}: {", ".join(str(x) for x in side_matches[layer]) }') unitses = set(layer.cam_source.units for items in layers.values() for _path, layer in items) if len(unitses) != 1: @@ -551,6 +551,8 @@ def svg_to_gerber(infile, outfile, layer=None, trace_space:'mm'=0.1, vectorizer= candidates = [ # somewhere in $PATH 'svg-flatten', + # in user-local pip installation + Path.home() / '.local' / 'bin' / 'svg-flatten', # next to our current python interpreter (e.g. in virtualenv str(Path(sys.executable).parent / 'svg-flatten'), # next to this python source file in the development repo |