mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +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
|
||||
os.environ["GIT_PYTHON_REFRESH"] = "quiet"
|
||||
import git
|
||||
try:
|
||||
import git
|
||||
except:
|
||||
print("Warning: GitPython not available.")
|
||||
import bpy
|
||||
from blenderbim.bim.ifc import IfcStore
|
||||
import blenderbim.tool as tool
|
||||
|
||||
Reference in New Issue
Block a user