<s> from __future__ import absolute_import <EOL> """<STR_LIT>""" <EOL> __author__ = "<STR_LIT>" <EOL> __copyright__ = "<STR_LIT>" <EOL> import socket <EOL> import os <EOL> try : <EOL> from package import version as puliversion <EOL> except ImportError : <EOL> puliversion = "<STR_LIT>" <EOL> def getLocalAddress ( ) : <EOL> s = socket . socket ( socket . AF_INET , socket . SOCK_DGRAM ) <EOL> s . connect ( ( '<STR_LIT>' , <NUM_LIT> ) ) <EOL> return s . getsockname ( ) [ <NUM_LIT:0> ] <EOL> def loadSettingsFile ( filename ) : <EOL> g = { } <EOL> l = { } <EOL> execfile ( filename , g , l ) <EOL> settings = [ ( name , value ) for name , value in l . items ( ) if name . isupper ( ) and name in globals ( ) ] <EOL> globals ( ) . update ( settings ) <EOL> fqdn = socket . getfqdn ( socket . gethostname ( ) ) <EOL> if "<STR_LIT:.>" in fqdn : <EOL> computername , domain = fqdn . split ( "<STR_LIT:.>" , <NUM_LIT:1> ) <EOL> else : <EOL> computername = fqdn <EOL> VERSION = os . environ . get ( "<STR_LIT>" , puliversion ) <EOL> DEBUG = True <EOL> computername = computername . lower ( ) <EOL> PORT = <NUM_LIT> <EOL> ADDRESS = computername <EOL> DISPATCHER_PORT = <NUM_LIT> <EOL> DISPATCHER_ADDRESS = "<STR_LIT>" <EOL> PIDFILE = "<STR_LIT>" <EOL> KILLFILE = "<STR_LIT>" % PORT <EOL> RESTARTFILE = "<STR_LIT>" <EOL> RUN_AS = "<STR_LIT>" <EOL> LOGDIR = "<STR_LIT>" <EOL> LIMIT_OPEN_FILES = <NUM_LIT> <EOL> PIDFILES_TO_KEEP = [ "<STR_LIT>" , "<STR_LIT>" ] </s>
