Skip to content

Commit

Permalink
Arch: Provisorily implemented workaround for utf8 paths and ifcopensh…
Browse files Browse the repository at this point in the history
…ell - issue #1795
  • Loading branch information
yorikvanhavre committed Nov 2, 2014
1 parent ae09625 commit 2836f4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Arch/importIFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def insert(filename,docname,skip=[]):

global ifcfile # keeping global for debugging purposes
ifcopenshell.clean()
if isinstance(filename,unicode):
import sys #workaround since ifcopenshell currently can't handle unicode filenames
filename = filename.encode(sys.getfilesystemencoding())
ifcfile = ifcopenshell.open(filename)
shape_attributes = ifcopenshell.SEW_SHELLS
if SEPARATE_OPENINGS: shape_attributes += ifcopenshell.DISABLE_OPENING_SUBTRACTIONS
Expand Down

0 comments on commit 2836f4c

Please sign in to comment.