diff options
author | Aleksey Lim <alsroot@activitycentral.org> | 2011-02-28 16:13:13 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@activitycentral.org> | 2011-02-28 16:13:13 (GMT) |
commit | a0705d8ff9b25c1172e38925ec27bb28f9e5a1e9 (patch) | |
tree | d3a20dff1d1e8d196fab33530fb21dd470addef5 /common/Util/Clooper/__init__.py | |
parent | 0c8e687ce284d7599b9bfb7c578b0fc7fb32c493 (diff) |
Revert "fixing simlimking build error"
This reverts commit 0c8e687ce284d7599b9bfb7c578b0fc7fb32c493.
Since common/ directory will be copied to .xo in setup.py anyway.
Diffstat (limited to 'common/Util/Clooper/__init__.py')
-rw-r--r-- | common/Util/Clooper/__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/Util/Clooper/__init__.py b/common/Util/Clooper/__init__.py new file mode 100644 index 0000000..363fc88 --- /dev/null +++ b/common/Util/Clooper/__init__.py @@ -0,0 +1,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') |