mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
make webdata ifc_file only show filename instead of full path
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def refresh():
|
def refresh():
|
||||||
@@ -37,4 +38,5 @@ class WebData:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def ifc_file_name(cls):
|
def ifc_file_name(cls):
|
||||||
return bpy.context.scene.BIMProperties.ifc_file
|
filename = os.path.basename(bpy.context.scene.BIMProperties.ifc_file)
|
||||||
|
return filename
|
||||||
|
|||||||
Reference in New Issue
Block a user