개정판 3130fc0a
add acd file error msg
Change-Id: I63a79998d7d259a8b4799e79d7ecc3e528b289a4
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
716 | 716 |
) |
717 | 717 |
|
718 | 718 |
stdout, stderr = p.communicate() |
719 |
if len(stderr) != 0: |
|
719 |
if len(stderr) != 0 or 'eFileSharingViolation' in str(stdout):
|
|
720 | 720 |
#raise RuntimeError('OdReadExMgd threw error:\n' + stderr.decode('utf-8')) |
721 |
raise RuntimeError('OdReadExMgd threw error:\n' + str(stderr)) |
|
721 |
raise RuntimeError('OdReadExMgd threw error:\n' + str(stderr)) if len(stderr) != 0 else \ |
|
722 |
RuntimeError('OdReadExMgd threw error:\n' + str(stdout)) |
|
722 | 723 |
|
723 | 724 |
"""parse layer, line type and symbol""" |
724 | 725 |
autocad_xml_path = os.path.join(os.path.dirname(file), |
내보내기 Unified diff