fixing driver argument TypeError

This commit is contained in:
k4yt3x 2020-05-04 17:19:48 -04:00
parent 89860f22cb
commit 19e6d241d5

View File

@ -167,10 +167,11 @@ config = read_config(video2x_args.config)
driver_settings = config[video2x_args.driver]
# overwrite driver_settings with driver_args
driver_args_dict = vars(driver_args)
for key in driver_args_dict:
if driver_args_dict[key] is not None:
driver_settings[key] = driver_args_dict[key]
if driver_args is not None:
driver_args_dict = vars(driver_args)
for key in driver_args_dict:
if driver_args_dict[key] is not None:
driver_settings[key] = driver_args_dict[key]
# check if driver path exists
if not pathlib.Path(driver_settings['path']).exists():