
def usage():
	yield '@'

def run(*args, **kwargs):
	from IPython.Shell import IPShellEmbed as embed
	if htcondor:
		import classad

	schedd = htcondor.Schedd()
	r = schedd.query()

	params = {}
	for result in r:
		for k in result.keys():
			if k in params:
				params[k] += 1
			else:
				params[k] = 1

	common = []
	for k, v in params.items():
		if v == len(r):
			common.append(k)

	common.sort()

	embed()()


def usage():
	yield '@'

def run(*args, **kwargs):
	sys.stdout.write('Configuration:\n')
	config.write(sys.stdout)

	from IPython.Shell import IPShellEmbed as embed
	if htcondor:
		import classad

	schedd = htcondor.Schedd()
	r = schedd.query()

	params = {}
	for result in r:
		for k in result.keys():
			if k in params:
				params[k] += 1
			else:
				params[k] = 1

	common = []
	for k, v in params.items():
		if v == len(r):
			common.append(k)

	common.sort()

	embed()()

print current config in debug subcommand