import inspect, os def cmd_devinfo(ensoapi): "Shows info for Enso developers about what's currently running" apifile = inspect.getfile(ensoapi.display_message) branch = os.path.realpath(os.path.join(apifile, "..", "..", "..", "..")) branchname = os.path.split(branch)[1] info = """Branch: %s : Commands: %s""" % (branchname, ensoapi.get_enso_commands_folder()) ensoapi.display_message(info)