1 ''' Set up paths to components, including in-tree development. '''
8 HERE = os.path.abspath(os.path.dirname(__file__))
9 if HERE
not in sys.path:
10 sys.path.insert(0, HERE)
12 if os.path.exists(os.path.join(HERE,
'_client.so')):
14 os.unlink(os.path.join(HERE,
'_client.so'))
15 except PermissionError:
17 if os.path.exists(os.path.join(HERE,
'..',
'lib',
'.libs',
'_client.so')):
18 if not os.path.exists(os.path.join(HERE,
'_client.so')):
21 os.symlink(os.path.join(
'..',
'lib',
'.libs',
'_client.so'),
22 os.path.join(HERE,
'_client.so'))
25 SRC = glob.glob(os.path.join(
26 HERE,
'..build/lib.linux*/_client.cpython*.so'))
28 os.symlink(os.path.join(SRC[0]), os.path.join(HERE,
'_client.so'))