mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Allow missing/broken GitPython
`import git` can fail badly with a broken xcode installation, so we let blenderbim run anyway
This commit is contained in:
@@ -3,7 +3,10 @@ import re
|
|||||||
|
|
||||||
# allows git import even if git executable isn't found
|
# allows git import even if git executable isn't found
|
||||||
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
|
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
|
||||||
import git
|
try:
|
||||||
|
import git
|
||||||
|
except:
|
||||||
|
print("Warning: GitPython not available.")
|
||||||
import bpy
|
import bpy
|
||||||
from blenderbim.bim.ifc import IfcStore
|
from blenderbim.bim.ifc import IfcStore
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
|
|||||||
Reference in New Issue
Block a user