File tree 1 file changed +3
-2
lines changed
src/blenderbim/blenderbim/bim/module/drawing
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
from odf .style import Style
31
31
from textwrap import wrap
32
32
from pathlib import Path
33
+ from blenderbim .bim .ifc import IfcStore
33
34
34
35
DEBUG = False
35
36
@@ -75,8 +76,8 @@ def parse_css(self, infile):
75
76
stylesheet_path = os .path .splitext (infile )[0 ] + ".css"
76
77
if not os .path .exists (stylesheet_path ):
77
78
stylesheet_rel_path = getattr (bpy .context .scene .DocProperties , "schedules_stylesheet_path" )
78
- infile_directory = os .path .dirname (infile )
79
- stylesheet_path = infile_directory + "\\ " + stylesheet_rel_path
79
+ ifc_file_path = os .path .dirname (IfcStore . path )
80
+ stylesheet_path = ifc_file_path + "\\ " + stylesheet_rel_path
80
81
if not os .path .exists (stylesheet_path ):
81
82
stylesheet_path = os .path .join (bpy .context .scene .BIMProperties .data_dir , "assets" , "schedule.css" )
82
83
with open (stylesheet_path , "r" ) as stylesheet :
You can’t perform that action at this time.
0 commit comments