11import os
22import re
33import bpy
4-
5- import core
6- from tool import IfcGit as tool
4+ import blenderbim . core . ifcgit as core
5+ import blenderbim . tool as tool
6+ # from tool import IfcGit as tool
77from data import IfcGitData
88
9- # TODO Remove all handler elements once in the correct folder structure
10- import handler
9+ # import handler
1110
12- import blenderbim .tool as btool
11+ # import blenderbim.tool as tool
1312
1413
1514class CreateRepo (bpy .types .Operator ):
@@ -34,7 +33,7 @@ def poll(cls, context):
3433
3534 def execute (self , context ):
3635
37- core .create_repo (tool , btool .Ifc )
36+ core .create_repo (tool . IfcGit , tool .Ifc )
3837 handler .refresh_ui_data ()
3938 return {"FINISHED" }
4039
@@ -58,7 +57,7 @@ def poll(cls, context):
5857
5958 def execute (self , context ):
6059
61- core .add_file (tool , btool .Ifc )
60+ core .add_file (tool . IfcGit , tool .Ifc )
6261 handler .refresh_ui_data ()
6362 return {"FINISHED" }
6463
@@ -72,7 +71,7 @@ class DiscardUncommitted(bpy.types.Operator):
7271
7372 def execute (self , context ):
7473
75- core .discard_uncomitted (tool , btool .Ifc )
74+ core .discard_uncomitted (tool . IfcGit , tool .Ifc )
7675 handler .refresh_ui_data ()
7776 return {"FINISHED" }
7877
@@ -107,7 +106,7 @@ def poll(cls, context):
107106 def execute (self , context ):
108107
109108 repo = IfcGitData .data ["repo" ]
110- core .commit_changes (tool , btool .Ifc , repo , context )
109+ core .commit_changes (tool . IfcGit , tool .Ifc , repo , context )
111110 handler .refresh_ui_data ()
112111 return {"FINISHED" }
113112
@@ -129,7 +128,7 @@ def poll(cls, context):
129128 def execute (self , context ):
130129
131130 repo = IfcGitData .data ["repo" ]
132- core .refresh_revision_list (tool , repo , btool .Ifc )
131+ core .refresh_revision_list (tool . IfcGit , repo , tool .Ifc )
133132 handler .refresh_ui_data ()
134133 return {"FINISHED" }
135134
@@ -143,7 +142,7 @@ class DisplayRevision(bpy.types.Operator):
143142
144143 def execute (self , context ):
145144
146- core .colourise_revision (tool , context )
145+ core .colourise_revision (tool . IfcGit , context )
147146 handler .refresh_ui_data ()
148147 return {"FINISHED" }
149148
@@ -158,7 +157,7 @@ class DisplayUncommitted(bpy.types.Operator):
158157 def execute (self , context ):
159158
160159 repo = IfcGitData .data ["repo" ]
161- core .colourise_uncommitted (tool , btool .Ifc , repo )
160+ core .colourise_uncommitted (tool . IfcGit , tool .Ifc , repo )
162161 handler .refresh_ui_data ()
163162 return {"FINISHED" }
164163
@@ -172,7 +171,7 @@ class SwitchRevision(bpy.types.Operator):
172171
173172 def execute (self , context ):
174173
175- core .switch_revision (tool , btool .Ifc )
174+ core .switch_revision (tool . IfcGit , tool .Ifc )
176175 handler .refresh_ui_data ()
177176 return {"FINISHED" }
178177
@@ -192,7 +191,7 @@ def poll(cls, context):
192191
193192 def execute (self , context ):
194193
195- if core .merge_branch (tool , btool .Ifc , self ):
194+ if core .merge_branch (tool . IfcGit , tool .Ifc , self ):
196195 handler .refresh_ui_data ()
197196 return {"FINISHED" }
198197 else :
0 commit comments