def detect_environment():
 global _environment
 if (_environment is None):
  _environment = _detect_environment()
 return _environment

def detect_environment ( ) : global _environment if ( _environment is None ) : _environment = _detect_environment ( ) return _environment
detect the current environment: default .