Index: run.py |
=================================================================== |
--- a/run.py |
+++ b/run.py |
@@ -112,17 +112,17 @@ def run(): |
'outdir', type=str, |
help='directory to write data into' |
) |
parameters = parser.parse_args() |
import buildtools.packagerGecko as packager |
cleanup = [] |
try: |
- base_dir = os.path.dirname(__file__) |
+ base_dir = os.path.dirname(os.path.abspath(__file__)) |
handle, crawlerxpi = tempfile.mkstemp(suffix='.xpi') |
os.close(handle) |
cleanup.append(crawlerxpi) |
packager.createBuild(base_dir, outFile=crawlerxpi, releaseBuild=True) |
abpxpi = 'https://addons.mozilla.org/firefox/downloads/latest/1865/addon-1865-latest.xpi' |
if parameters.abpdir: |
handle, abpxpi = tempfile.mkstemp(suffix='.xpi') |