def     __init__(self, profile='default'):
		config_path = os.path.expanduser( '~/.agileclu/' )

		# Load configuration variables

		if os.path.isfile( os.path.join( config_path, profile+'.conf' ) ):
			cfg.read( os.path.join( config_path, profile+'.conf' ) )

		else:
			print (profile,profile) % "Profile (%s) does not exist.  Use \"agileprofile create %s\" to create the profile."
			# logger.critical( "configuration /etc/agile/"+profile+".conf does not exist" )
			sys.exit(1)

		self.uid = cfg.get("Identity", "username")

		self.egress_protocol = cfg.get("Egress", "protocol")
		self.egress_hostname = cfg.get("Egress", "hostname")
		self.egress_basepath = cfg.get("Egress", "basepath")
		
		self.ingest_protocol = cfg.get("Ingest", "protocol")
		self.ingest_hostname = cfg.get("Ingest", "hostname")

		self.mapperurl = self.egress_protocol + "://" + self.egress_hostname + self.egress_basepath
		self.apiurl = self.ingest_protocol + "://" + self.ingest_hostname + "/jsonrpc"
		self.posturl = self.ingest_protocol + "://" + self.ingest_hostname + "/post/file"
		self.postrawurl = self.ingest_protocol + "://" + self.ingest_hostname + "/post/raw"
		self.postmultiurl = self.ingest_protocol + ":8080//" + self.ingest_hostname + "/multipart"

		self.pbar = None
		self.pbarfname = None

		upw = e_pw_dehash( cfg.get("Identity", "password"), self.uid, self.egress_protocol, self.egress_hostname, self.egress_basepath )

		if upw is "87654321":
			print "Password corruptions - dehash was empty!  Delete the profile and create a new one."
			sys.exit(1)

		# initialize the logger for session
		if cfg.getboolean("Logging", "enabled" ):
			hdlr = logging.FileHandler( '/var/log/agileclu.log' )
			formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
			hdlr.setFormatter(formatter)
			logger.addHandler(hdlr)
			logger.setLevel(logging.INFO)

		# connect to API, authenticate, and get a token
		self.api = jsonrpclib.Server( self.apiurl )
		self.token, self.user = self.api.login( self.uid, upw )
		if self.token is None:
			print "Authentication for '"+str(self.uid)+"' failed!  It is recommended to generate a new profile with \"agileprofile\" command."
			logger.critical( self.uid+" login failed - check account credentials" )
			sys.exit(1)

		logger.info( self.uid+" "+self.token+", login "+str(self.user)+" tokenized" )
dataset/ETHPy150Open wylieswanson/AgileCLU/AgileCLU/__init__.py/AgileCLU.__init__/swapped operands of `%`