importDWG: remove comments

This commit is contained in:
lorenz
2020-01-03 15:51:54 +01:00
committed by Yorik van Havre
parent e2e7659efc
commit dfea8535b6

View File

@@ -203,7 +203,6 @@ def convertToDxf(dwgfilename):
"""
import os, tempfile, subprocess, sys
############################ try libredwg
import shutil
if shutil.which("dwg2dxf"):
outdir = tempfile.mkdtemp()
@@ -212,7 +211,6 @@ def convertToDxf(dwgfilename):
proc = subprocess.Popen(("dwg2dxf", dwgfilename, "-o", result))
proc.communicate()
return result
############################ end libredwg
teigha = getTeighaConverter()
if teigha:
@@ -261,13 +259,11 @@ def convertToDwg(dxffilename, dwgfilename):
"""
import os, subprocess
############################ try libredwg
import shutil
if shutil.which("dxf2dwg"):
proc = subprocess.Popen(("dxf2dwg", dxffilename, "-o", dwgfilename))
proc.communicate()
return dwgfilename
############################ end libredwg
teigha = getTeighaConverter()
if teigha: