From 2938c1fd0b9c0968a71ffd1eaafe340b3414775a Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sun, 11 Aug 2024 18:32:07 -0500 Subject: [PATCH] small tweak to the previous commits --- src/blenderbim/blenderbim/bim/module/drawing/scheduler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/scheduler.py b/src/blenderbim/blenderbim/bim/module/drawing/scheduler.py index dcadd73ca8..a200dda7a0 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/scheduler.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/scheduler.py @@ -30,6 +30,7 @@ from odf.text import P from odf.style import Style from textwrap import wrap from pathlib import Path +from blenderbim.bim.ifc import IfcStore DEBUG = False @@ -75,8 +76,8 @@ class Scheduler: stylesheet_path = os.path.splitext(infile)[0] + ".css" if not os.path.exists(stylesheet_path): stylesheet_rel_path = getattr(bpy.context.scene.DocProperties, "schedules_stylesheet_path") - infile_directory = os.path.dirname(infile) - stylesheet_path = infile_directory + "\\" + stylesheet_rel_path + ifc_file_path = os.path.dirname(IfcStore.path) + stylesheet_path = ifc_file_path + "\\" + stylesheet_rel_path if not os.path.exists(stylesheet_path): stylesheet_path = os.path.join(bpy.context.scene.BIMProperties.data_dir, "assets", "schedule.css") with open(stylesheet_path, "r") as stylesheet: