mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
bbim_translations - not to fail if user has fake-bpy-module
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
try:
|
||||
import bpy
|
||||
# Ensure it's not fake-bpy-module.
|
||||
if not hasattr(bpy, "context"):
|
||||
raise ModuleNotFoundError
|
||||
import bl_i18n_utils
|
||||
import addon_utils
|
||||
|
||||
|
||||
Reference in New Issue
Block a user