def parent_dir_action(parent, fn):
 action = cmd_action(parent, cmds.OpenParentDir, fn, hotkeys.SECONDARY_ACTION)
 action.setIcon(icons.folder())
 return action

def parent_dir_action ( parent , fn ) : action = cmd_action ( parent , cmds . OpenParentDir , fn , hotkeys . SECONDARY_ACTION ) action . setIcon ( icons . folder ( ) ) return action
open the parent directory of paths -> qaction .