Core: Fix macro recording when using module_io
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
from FreeCAD import Base
|
||||
import importlib
|
||||
|
||||
|
||||
def OpenInsertObject(importerModule, objectPath, importMethod, docName = ""):
|
||||
def OpenInsertObject(importerName, objectPath, importMethod, docName = ""):
|
||||
try:
|
||||
importArgs = []
|
||||
importKwargs = {}
|
||||
|
||||
importerModule = importlib.import_module(importerName)
|
||||
|
||||
if docName:
|
||||
importArgs.append(docName)
|
||||
if hasattr(importerModule, "importOptions"):
|
||||
|
||||
Reference in New Issue
Block a user