mirror of
https://github.com/gumyr/build123d.git
synced 2026-05-04 10:41:54 -07:00
Adding support for Windows
This commit is contained in:
parent
fd4b16b529
commit
3d0cdcf4e1
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ from io import StringIO
|
|||
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,
|
||||
|
|
@ -114,7 +115,8 @@ class ImportSTEP(unittest.TestCase):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue