OpenSCAD: Remove old workaround code

Fixes #8621
This commit is contained in:
Chris Hennes
2023-02-24 10:31:39 -06:00
parent 6f278d7673
commit f9344fd2de
2 changed files with 2 additions and 30 deletions

View File

@@ -129,11 +129,7 @@ def open(filename):
doc = FreeCAD.newDocument(docname)
if filename.lower().endswith('.scad'):
tmpfile = callopenscad(filename)
if workaroundforissue128needed():
pathName = '' # https://github.com/openscad/openscad/issues/128
#pathName = os.getcwd() # https://github.com/openscad/openscad/issues/128
else:
pathName = os.path.dirname(os.path.normpath(filename))
pathName = os.path.dirname(os.path.normpath(filename))
processcsg(tmpfile)
try:
os.unlink(tmpfile)
@@ -159,11 +155,7 @@ def insert(filename, docname):
#importgroup = doc.addObject("App::DocumentObjectGroup",groupname)
if filename.lower().endswith('.scad'):
tmpfile = callopenscad(filename)
if workaroundforissue128needed():
pathName = '' # https://github.com/openscad/openscad/issues/128
#pathName = os.getcwd() # https://github.com/openscad/openscad/issues/128
else:
pathName = os.path.dirname(os.path.normpath(filename))
pathName = os.path.dirname(os.path.normpath(filename))
processcsg(tmpfile)
try:
os.unlink(tmpfile)