17dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch# Copyright 2013 The Chromium Authors. All rights reserved.
27dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch# Use of this source code is governed by a BSD-style license that can be
37dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch# found in the LICENSE file.
47dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
57dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch# TODO(dmikurube): Remove this file once Python 2.7 is required.
67dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
77dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochimport os
87dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochimport sys
97dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
107dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochtry:
117dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  from collections import OrderedDict  # pylint: disable=E0611,W0611
127dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochexcept ImportError:
137dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  _BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
147dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  _SIMPLEJSON_PATH = os.path.join(_BASE_PATH,
157dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch                                  os.pardir,
167dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch                                  os.pardir,
177dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch                                  'third_party')
187dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  sys.path.insert(0, _SIMPLEJSON_PATH)
197dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  from simplejson import OrderedDict  # pylint: disable=W0611
20