From d298e79ec1b9c1b5fa0dacec90163aa6ee446c7b Mon Sep 17 00:00:00 2001 From: Dennis Date: Sun, 22 Aug 2021 21:27:44 -0700 Subject: [PATCH] Fix bug where an empty search path caused srdl2sv to crash --- srdl2sv/cli/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srdl2sv/cli/cli.py b/srdl2sv/cli/cli.py index 4e4a3b8..e55dc9c 100644 --- a/srdl2sv/cli/cli.py +++ b/srdl2sv/cli/cli.py @@ -124,6 +124,9 @@ class CliArguments(): else: config['search_paths'] = args.search_paths + if not config['search_paths']: + config['search_paths'] = [] + # Save timestamp, so that it can be used across the compiler config['ts'] = time.localtime()