From 90ea67a64e94d2e7464bcd9c5b908c09e2271fdc Mon Sep 17 00:00:00 2001 From: Adam Lopez Date: Wed, 5 Sep 2012 10:35:09 -0400 Subject: Extractor no longer complains if feature definitions aren't supplied --- python/pkg/cdec/sa/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/pkg/cdec/sa') diff --git a/python/pkg/cdec/sa/extract.py b/python/pkg/cdec/sa/extract.py index b370c4ca..472f128b 100644 --- a/python/pkg/cdec/sa/extract.py +++ b/python/pkg/cdec/sa/extract.py @@ -50,7 +50,7 @@ def main(): if not os.path.exists(args.grammars): os.mkdir(args.grammars) - if not args.features.endswith('.py'): + if not (args.features is None or args.features.endswith('.py')): sys.stderr.write('Error: feature definition file should be a python module\n') sys.exit(1) -- cgit v1.2.3