# Is there a way to access a bpy.types.Operator value

I have a popup that can allow the user the set a value. I can see that the value is getting set correctly as it reports it to the console. However after the function that calls the Operator completes how is it possible to access values that we set inside the Operator class?

class OpenBrowser(bpy.types.Operator):
bl_idname = "open.browser"
bl_label = "Select Path"
bl_options = {"REGISTER", "UNDO"}

directory = StringProperty(subtype="DIR_PATH")
cancel_search = BoolProperty(
name="Cancel Search",
description="If no further images are to be found",
default=False,
)

def execute(self, context):
display = "dirpath=" + self.directory
print(display)
return {'FINISHED'}

def invoke(self, context, event):
wm = context.window_manager
return {'RUNNING_MODAL'}

bpy.ops.open.browser('INVOKE_DEFAULT')



How do I access the value that was set for directory following the the completion of the last function call?

bpy.types.Scene.directory = bpy.props.StringProperty()

context.scene.directory = self.directory