1 # Copyright (c) 2013 The Chromium OS 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. 4 5 # Looks up all python files in this folder at runtime, and sets them to 6 # be loaded by the `import *` below. 7 import glob 8 import os 9 __all__ = [os.path.basename(f)[:-3] for f in 10 glob.glob(os.path.dirname(__file__)+"/*.py")] 11 12 # Import all the files in this folder so that _registry gets filled in and 13 # force the import order to make sure registry, which is imported by all, is 14 # imported first. 15 import common 16 import registry 17 from . import * 18