Commits

Michał Górny committed 190d6a5

gentoopmq shell: import filters and matchers as well.

  • Participants
  • Parent commits f1c01cc

Comments (0)

Files changed (1)

File gentoopm/querycli.py

 		Run a Python shell with current PM selected.
 		"""
 		def __call__(self, pm, args):
-			welc = "The %s PM is now available as 'pm' object." % pm.name
+			import gentoopm.filters as f
+			import gentoopm.matchers as m
+
+			our_imports = (
+					('pm', pm),
+					('f', f),
+					('m', m))
+
+			welc = '''The following objects have been imported for you:\n'''
+			welc += '\n'.join(['\t%s: %s' % (key, repr(var))
+					for key, var in our_imports])
 			kwargs = {}
 
 			try: