From 6e40b641a255ac84e804563a974e36ead90fcd02 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Fri, 19 Dec 2014 21:31:11 +0100 Subject: [PATCH] Slight update for Python scripts --- tools/make-firefox-meta.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/make-firefox-meta.py b/tools/make-firefox-meta.py index a8c066b..a4ebe40 100644 --- a/tools/make-firefox-meta.py +++ b/tools/make-firefox-meta.py @@ -3,11 +3,12 @@ import os import json import sys +from io import open from shutil import rmtree from collections import OrderedDict -if not sys.argv[1]: - raise SystemExit('Build dir missing.') +if len(sys.argv) == 1 or not sys.argv[1]: + raise SystemExit('Build dir missing.') def mkdirs(path):