#!/usr/bin/python2 import sys if sys.platform == "darwin": # OSX: pyGlobus/globus need to be loaded before modules such as socket. import pyGlobus.ioc from AccessGrid.Toolkit import CmdlineApplication from AccessGrid.VenueClient import VenueClientIW url = sys.argv[1] # Create and initialize application app = CmdlineApplication() app.Initialize('GetUsers') # Create venue interface wrapper venue = VenueClientIW(url) # Get clients from venue and process clientList = venue.GetUsers() for client in clientList: print client