From f66b93255fd6539eb2313a4289139d30ead5d97e Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Tue, 1 May 2012 14:35:03 -0700 Subject: [PATCH] Move rebind to a subdirectory --- Makefile => rebind/Makefile | 0 rebind => rebind/rebind | 0 rebind.c => rebind/rebind.c | 0 websockify/proxy.py | 3 ++- 4 files changed, 2 insertions(+), 1 deletion(-) rename Makefile => rebind/Makefile (100%) rename rebind => rebind/rebind (100%) rename rebind.c => rebind/rebind.c (100%) diff --git a/Makefile b/rebind/Makefile similarity index 100% rename from Makefile rename to rebind/Makefile diff --git a/rebind b/rebind/rebind similarity index 100% rename from rebind rename to rebind/rebind diff --git a/rebind.c b/rebind/rebind.c similarity index 100% rename from rebind.c rename to rebind/rebind.c diff --git a/websockify/proxy.py b/websockify/proxy.py index 7a46cec..cd83709 100644 --- a/websockify/proxy.py +++ b/websockify/proxy.py @@ -47,11 +47,12 @@ Traffic Legend: self.wrap_times = [0, 0, 0] if self.wrap_cmd: - rebinder_path = ['./', os.path.dirname(sys.argv[0])] + rebinder_path = ['./', os.path.dirname(sys.argv[0]), 'rebind/'] self.rebinder = None for rdir in rebinder_path: rpath = os.path.join(rdir, "rebind.so") + print rpath if os.path.exists(rpath): self.rebinder = rpath break