OpenSCAD check for relative paths in open function as well
This commit is contained in:
parent
9f4c547afe
commit
3b32918e54
|
@ -100,8 +100,11 @@ 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))
|
||||
processcsg(tmpfile)
|
||||
try:
|
||||
os.unlink(tmpfile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user