Skip to content

Commit

Permalink
Adding support for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Aug 21, 2024
1 parent fd4b16b commit 3d0cdcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import unittest
import urllib.request
import tempfile
from build123d import BuildLine, Color, Line, Bezier, RadiusArc, Solid, Compound
from build123d.importers import (
import_svg_as_buildline_code,
Expand Down Expand Up @@ -114,7 +115,8 @@ class before any of the test methods in the class are executed. It's intended
connection, or starting a server.
"""
url = "https://raw.githubusercontent.com/tpaviot/pythonocc-demos/master/assets/models/as1-oc-214.stp"
file_path = "/tmp/as1-oc-214.stp"
temp_dir = tempfile.gettempdir()
file_path = os.path.join(temp_dir, "as1-oc-214.stp")
if not os.path.exists(file_path):
urllib.request.urlretrieve(url, file_path)
cls.large_step_file_path = file_path
Expand Down

0 comments on commit 3d0cdcf

Please sign in to comment.