lib/fontcustom/scripts/generate.py in fontcustom-1.3.0 vs lib/fontcustom/scripts/generate.py in fontcustom-1.3.1
- old
+ new
@@ -12,15 +12,16 @@
try:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('manifest', help='Path to .fontcustom-manifest.json')
args = parser.parse_args()
+ manifestfile = open(args.manifest, 'r+')
except ImportError:
import optparse
parser = optparse.OptionParser()
(nothing, args) = parser.parse_args()
+ manifestfile = open(args[0], 'r+')
-manifestfile = open(args.manifest, 'r+')
manifest = json.load(manifestfile)
options = manifest['options']
#
# Font