zephyr_mirror: Clean up sys.path computations.

(imported from commit 7a58c4aae017b67b8b03ba1f4a0286d29381a5b1)
This commit is contained in:
Tim Abbott 2012-10-29 14:34:15 -04:00
parent 20e08a04f7
commit e486be909e

View file

@ -12,6 +12,7 @@ import textwrap
import signal import signal
root_path = "/mit/tabbott/for_friends" 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")
sys.path.append(root_path + "/python-zephyr/build/lib.linux-x86_64-2.6/") sys.path.append(root_path + "/python-zephyr/build/lib.linux-x86_64-2.6/")
@ -68,8 +69,6 @@ parser.add_option('--api-key-file',
api_key = file(options.api_key_file).read().strip() api_key = file(options.api_key_file).read().strip()
sys.path.append(".")
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import api.common import api.common
humbug_client = api.common.HumbugAPI(email=options.user + "@mit.edu", humbug_client = api.common.HumbugAPI(email=options.user + "@mit.edu",
api_key=api_key, api_key=api_key,