Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbez1 committed May 13, 2021
1 parent e5edbed commit 710c76d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
- name: Generate 2d output (Ponoko 3mm MDF)
run: |
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-mdf
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python3 -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-mdf
cp 3d/build/laser_parts/combined.svg 3d/build/outputs/3d_laser_vector-ponoko-3mm-mdf.svg
- name: Generate 2d output (Ponoko 3mm Acrylic)
run: |
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-acrylic
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python3 -u 3d/scripts/generate_2d.py --render-raster --kerf-preset ponoko-3mm-acrylic
cp 3d/build/laser_parts/combined.svg 3d/build/outputs/3d_laser_vector-ponoko-3mm-acrylic.svg
- name: Generate animated gif
run: |
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python -u 3d/scripts/generate_gif.py
xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" python3 -u 3d/scripts/generate_gif.py
cp 3d/build/animation/animation.gif 3d/build/outputs/3d_animation.gif
- name: Generate STLs for web viewer
Expand Down
2 changes: 1 addition & 1 deletion 3d/scripts/openscad.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(

if variables is not None:
for k, v in variables.items():
if isinstance(v, basestring) or isinstance(v, bytes):
if isinstance(v, str) or isinstance(v, bytes):
try:
v = v.decode('utf-8')
except (UnicodeDecodeError, AttributeError):
Expand Down

0 comments on commit 710c76d

Please sign in to comment.