mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
black format
This commit is contained in:
@@ -219,8 +219,8 @@ def register():
|
|||||||
|
|
||||||
wm = bpy.context.window_manager
|
wm = bpy.context.window_manager
|
||||||
if wm.keyconfigs.addon:
|
if wm.keyconfigs.addon:
|
||||||
km = wm.keyconfigs.addon.keymaps.new(name='Window', space_type='EMPTY')
|
km = wm.keyconfigs.addon.keymaps.new(name="Window", space_type="EMPTY")
|
||||||
kmi = km.keymap_items.new('bim.switch_tab', 'TAB', 'PRESS', ctrl=True)
|
kmi = km.keymap_items.new("bim.switch_tab", "TAB", "PRESS", ctrl=True)
|
||||||
addon_keymaps.append((km, kmi))
|
addon_keymaps.append((km, kmi))
|
||||||
|
|
||||||
global icons
|
global icons
|
||||||
@@ -238,12 +238,14 @@ def register():
|
|||||||
global last_commit_hash
|
global last_commit_hash
|
||||||
try:
|
try:
|
||||||
import git
|
import git
|
||||||
|
|
||||||
path = Path(__file__).resolve().parent
|
path = Path(__file__).resolve().parent
|
||||||
repo = git.Repo(str(path), search_parent_directories=True)
|
repo = git.Repo(str(path), search_parent_directories=True)
|
||||||
last_commit_hash = repo.head.object.hexsha
|
last_commit_hash = repo.head.object.hexsha
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
global icons
|
global icons
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user