Move rebind to a subdirectory

This commit is contained in:
Anthony Young 2012-05-01 14:35:03 -07:00
parent ff700cd628
commit f66b93255f
4 changed files with 2 additions and 1 deletions

View File

@ -47,11 +47,12 @@ Traffic Legend:
self.wrap_times = [0, 0, 0] self.wrap_times = [0, 0, 0]
if self.wrap_cmd: if self.wrap_cmd:
rebinder_path = ['./', os.path.dirname(sys.argv[0])] rebinder_path = ['./', os.path.dirname(sys.argv[0]), 'rebind/']
self.rebinder = None self.rebinder = None
for rdir in rebinder_path: for rdir in rebinder_path:
rpath = os.path.join(rdir, "rebind.so") rpath = os.path.join(rdir, "rebind.so")
print rpath
if os.path.exists(rpath): if os.path.exists(rpath):
self.rebinder = rpath self.rebinder = rpath
break break