From 096c21f33822fd4b770c60691acdacb8b5028119 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 3 Jan 2019 10:45:36 -0800 Subject: [PATCH] Fixed indexing dictionary keys --- src/Mod/Path/PathScripts/PathToolLibraryManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathToolLibraryManager.py b/src/Mod/Path/PathScripts/PathToolLibraryManager.py index f48cf23fba..1ffaf1e5a7 100644 --- a/src/Mod/Path/PathScripts/PathToolLibraryManager.py +++ b/src/Mod/Path/PathScripts/PathToolLibraryManager.py @@ -328,7 +328,7 @@ class ToolLibraryManager(): tt = Path.Tooltable() if position is None: tt.addTools(tool) - newID = tt.Tools.keys()[-1] + newID = list(tt.Tools)[-1] else: tt.setTool(position, tool) newID = position