sverchok_modifier - minor refactor

This commit is contained in:
Andrej730
2023-01-08 13:24:11 +05:00
parent c29048ecfb
commit 4ab6d648c9
@@ -20,9 +20,7 @@ import bpy
from bpy.types import Operator from bpy.types import Operator
from bpy.props import FloatProperty, IntProperty, BoolProperty from bpy.props import FloatProperty, IntProperty, BoolProperty
from bpy_extras.object_utils import AddObjectHelper, object_data_add from bpy_extras.object_utils import AddObjectHelper, object_data_add
import bmesh import bmesh
from bmesh.types import BMVert
import ifcopenshell import ifcopenshell
import blenderbim import blenderbim
@@ -34,10 +32,7 @@ from mathutils import Vector
from pprint import pprint from pprint import pprint
import json import json
import zipfile import zipfile
from os.path import basename, dirname
import os.path import os.path
import json
def update_sverchok_modifier(context): def update_sverchok_modifier(context):
@@ -277,8 +272,8 @@ class ExportSverchokGraph(bpy.types.Operator, tool.Ifc.Operator):
comp_mode = zipfile.ZIP_DEFLATED comp_mode = zipfile.ZIP_DEFLATED
# destination path = /a../b../c../somename.json # destination path = /a../b../c../somename.json
base = basename(destination_path) # somename.json base = os.path.basename(destination_path) # somename.json
basedir = dirname(destination_path) # /a../b../c../ basedir = os.path.dirname(destination_path) # /a../b../c../
# somename.zip # somename.zip
final_archivename = base.replace(".json", "") + ".zip" final_archivename = base.replace(".json", "") + ".zip"