def _setup_environ(app_id):
 os.environ['APPLICATION_ID'] = app_id
 filename = '/etc/appscale/port-{0}.txt'.format(app_id)
 with open(filename) as file_handle:
  port = file_handle.read()
  os.environ['NGINX_PORT'] = port

def _setup_environ ( app_id ) : os . environ [ 'APPLICATION_ID' ] = app_id filename = '/etc/appscale/port-{0}.txt' . format ( app_id ) with open ( filename ) as file_handle : port = file_handle . read ( ) os . environ [ 'NGINX_PORT' ] = port
sets up the os .