def execute_from_command_line(argv=None):
 if (sys.stdout.encoding is None):
  print(u'please set python env PYTHONIOENCODING=UTF-8, example: export PYTHONIOENCODING=UTF-8, when writing to stdout', file=sys.stderr)
  exit(1)
 command = Command(argv)
 command.execute()

def execute_from_command_line ( argv = None ) : if ( sys . stdout . encoding is None ) : print ( u'please set python env PYTHONIOENCODING=UTF-8, example: export PYTHONIOENCODING=UTF-8, when writing to stdout' , file = sys . stderr ) exit ( 1 ) command = Command ( argv ) command . execute ( )
a simple method that runs a managementutility .