blob: 51359a11783556fae85aad638eee738d15452309 [file] [log] [blame]
mblighb090f142008-02-27 21:33:46 +00001"""\
2This abortion of a file is here so we can access stuff in
3client/common_lib
4"""
5
6__author__ = "raphtee@google.com (Travis Miller)"
7
8import os, sys
9
10dirname = os.path.dirname(sys.modules[__name__].__file__)
11client_dir = os.path.abspath(os.path.join(dirname, "..", 'client'))
12
13# insert client into top of path
14sys.path.insert(0, client_dir)
15import common_lib
16from common_lib import *
17
18# remove top of path
19del sys.path[0]
20
21for library in common_lib.__all__:
22 sys.modules['common.%s' % library] = eval(library)
23
24# clean up the namespace
25del dirname, client_dir, library
26del os, sys, common_lib