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):