def open_scene(path = None): if os.path.exists(path): checkState() insert_recent_file(path) opend = cmds.file(path, o = True, f = True, esn = True) logging.info("{}".format(opend)) return opend