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