mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Unbreak everything.
This commit is contained in:
@@ -44,7 +44,7 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
start = time.time()
|
start = time.time()
|
||||||
logger = logging.getLogger("ExportIFC")
|
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):
|
if not os.access(bpy.context.scene.BIMProperties.data_dir, os.W_OK):
|
||||||
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
|
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
@@ -110,7 +110,7 @@ class ImportIFC(bpy.types.Operator, ImportHelper):
|
|||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
start = time.time()
|
start = time.time()
|
||||||
logger = logging.getLogger("ImportIFC")
|
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):
|
if not os.access(context.scene.BIMProperties.data_dir, os.W_OK):
|
||||||
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
|
path_log = os.path.join(tempfile.mkdtemp(), "process.log")
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
|
|||||||
Reference in New Issue
Block a user