mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
allow missing translations.py as not everyone will need translations for BBIM
This commit is contained in:
@@ -22,9 +22,12 @@ import bpy
|
|||||||
import bpy.utils.previews
|
import bpy.utils.previews
|
||||||
import blenderbim
|
import blenderbim
|
||||||
import importlib
|
import importlib
|
||||||
from blenderbim.translations import translations_dict
|
|
||||||
from . import handler, ui, prop, operator, helper
|
from . import handler, ui, prop, operator, helper
|
||||||
|
|
||||||
|
try:
|
||||||
|
from blenderbim.translations import translations_dict
|
||||||
|
except ImportError:
|
||||||
|
translations_dict = {}
|
||||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
|
|||||||
Reference in New Issue
Block a user