From 0cb9a8321b74d4490abbc14b81ba46ed39b18dba Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 31 Oct 2012 13:40:30 -0400 Subject: [PATCH] zephyr_mirror: Append our elements to the start of sys.path. (imported from commit 674848bcac71d5bd28549f14a5da0f72c6c59d69) --- bots/zephyr_mirror.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 3182ea5..4b441cc 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -12,9 +12,8 @@ import textwrap import signal root_path = "/mit/tabbott/for_friends" -sys.path.append(root_path) -sys.path.append(root_path + "/python-zephyr") -sys.path.append(root_path + "/python-zephyr/build/lib.linux-x86_64-2.6/") +sys.path[:0] = [root_path, root_path + "/python-zephyr", + root_path + "/python-zephyr/build/lib.linux-x86_64-2.6/"] parser = optparse.OptionParser() parser.add_option('--forward-class-messages',