Simple FileDialog Command?


Is there a simple dialog FileDialog Command in Blender Python?

In Maya, it simply is:
file_path = cmds.fileDialog()

In C4D, it simply is:
file_path =

In Blender, from the template Operator File Export and Operator File Import,
I’d have to instance ImportHelperwith the class Operator, have the operator register/unregister again and so forth.

Does Blender have a single line command like what I listed above?


I tried with this code but I get an error

import bpy
import bpy_extras.io_utils
file_dialog = bpy_extras.io_utils.ImportHelper()
file_dialog.invoke(bpy.context, _event) # ERROR: _event not defined.