bug 1314574 replace sys.path with site.addsitedir so that .pth files are processed. r=rail a=release DONTBUILD

MozReview-Commit-ID: 2zFMaEzWByn

--HG--
extra : rebase_source : c553ec7d2985c7b4e80cca06e5d61c5de7cbbb2e
This commit is contained in:
Simon Fraser 2016-11-02 10:43:57 +00:00
parent 4cc7ae9882
commit 07274b231c

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
import site
import os
import logging
import argparse
@ -10,8 +11,7 @@ import tempfile
from boto.s3.connection import S3Connection
from mardor.marfile import MarFile
sys.path.insert(0, os.path.join(
os.path.dirname(__file__), "/home/worker/tools/lib/python"))
site.addsitedir("/home/worker/tools/lib/python")
from balrog.submitter.cli import NightlySubmitterV4, ReleaseSubmitterV4
from util.retry import retry, retriable