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)
|
importgroup = doc.addObject("App::DocumentObjectGroup",groupname)
|
||||||
if filename.lower().endswith('.scad'):
|
if filename.lower().endswith('.scad'):
|
||||||
tmpfile=callopenscad(filename)
|
tmpfile=callopenscad(filename)
|
||||||
|
if workaroundforissue128needed():
|
||||||
pathName = '' #https://github.com/openscad/openscad/issues/128
|
pathName = '' #https://github.com/openscad/openscad/issues/128
|
||||||
#pathName = os.getcwd() #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)
|
processcsg(tmpfile)
|
||||||
try:
|
try:
|
||||||
os.unlink(tmpfile)
|
os.unlink(tmpfile)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user