bug 1314574 replace sys.path with site.addsitedir so that .pth files are processed. r=rail
MozReview-Commit-ID: 2zFMaEzWByn
--- a/release/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py
+++ b/release/docker/funsize-balrog-submitter/scripts/funsize-balrog-submitter.py
@@ -1,22 +1,22 @@
#!/usr/bin/env python
+import site
import os
import logging
import argparse
import json
import sys
import hashlib
import requests
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
log = logging.getLogger(__name__)
def get_hash(content, hash_type="md5"):