1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
9 def _IsServerSoftware(name
):
10 return os
.environ
.get('SERVER_SOFTWARE', '').find(name
) == 0
14 return _IsServerSoftware('Development')
17 def IsReleaseServer():
18 return _IsServerSoftware('Google App Engine')
21 def IsPreviewServer():
22 return sys
.argv
and os
.path
.basename(sys
.argv
[0]) == 'preview.py'