Fix bug where an empty search path caused srdl2sv to crash

This commit is contained in:
Dennis Potter 2021-08-22 21:27:44 -07:00
parent 8881821252
commit d298e79ec1
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -124,6 +124,9 @@ class CliArguments():
else: else:
config['search_paths'] = args.search_paths 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 # Save timestamp, so that it can be used across the compiler
config['ts'] = time.localtime() config['ts'] = time.localtime()