def setStateLocation(stateLocation):
 if (stateLocation is None):
  return
 if (not stateLocation.endswith('/')):
  stateLocation += '/'
 stateLocation += (const.TRANSPORT_NAME.lower() + '/')
 if (not os.path.exists(stateLocation)):
  log.info(("Creating directory path `%s'." % stateLocation))
  os.makedirs(stateLocation)
 log.debug(("Setting the state location to `%s'." % stateLocation))
 const.STATE_LOCATION = stateLocation

def setStateLocation ( stateLocation ) : if ( stateLocation is None ) : return if ( not stateLocation . endswith ( '/' ) ) : stateLocation += '/' stateLocation += ( const . TRANSPORT_NAME . lower ( ) + '/' ) if ( not os . path . exists ( stateLocation ) ) : log . info ( ( "Creating directory path `%s'." % stateLocation ) ) os . makedirs ( stateLocation ) log . debug ( ( "Setting the state location to `%s'." % stateLocation ) ) const . STATE_LOCATION = stateLocation
set the constant state_location to the given statelocation .