Unbreak everything.

This commit is contained in:
Dion Moult
2021-08-03 16:09:43 +10:00
parent f25fb0db51
commit b59a9f5264
+2 -2
View File
@@ -44,7 +44,7 @@ class ExportIFC(bpy.types.Operator):
def _execute(self, context):
start = time.time()
logger = logging.getLogger("ExportIFC")
path_log = os.path.join(bpy.context.scene.BIMProperties.data_dir, "process.log"),
path_log = os.path.join(bpy.context.scene.BIMProperties.data_dir, "process.log")
if not os.access(bpy.context.scene.BIMProperties.data_dir, os.W_OK):
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
logging.basicConfig(
@@ -110,7 +110,7 @@ class ImportIFC(bpy.types.Operator, ImportHelper):
def execute(self, context):
start = time.time()
logger = logging.getLogger("ImportIFC")
path_log = os.path.join(context.scene.BIMProperties.data_dir, "process.log"),
path_log = os.path.join(context.scene.BIMProperties.data_dir, "process.log")
if not os.access(context.scene.BIMProperties.data_dir, os.W_OK):
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
logging.basicConfig(