Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/Clooper/__init__.py
blob: 363fc8806b62e915ba42ad9e8106ab21f0b4c981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
import sys
import logging

_sys_path = sys.path
_root_path = os.path.dirname(__file__)

for i in os.listdir(_root_path):
    path = os.path.join(_root_path, i)
    if (os.path.isdir(path)):
        sys.path = _sys_path + [os.path.join('.', path)]
        try:
            from aclient import *
            logging.debug('use %s blobs' % path)
            _sys_path = None
            break
        except Exception, e:
            logging.debug('skip %s blobs: %s' % (path, e))

if _sys_path:
    raise('cannot find proper binary blobs')