mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-22 00:17:55 +00:00
Fix existence check of config files
Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
@@ -228,9 +228,10 @@ class ConfigFile(metaclass=ABCMeta):
|
|||||||
if os.path.lexists(candidate):
|
if os.path.lexists(candidate):
|
||||||
filename = candidate
|
filename = candidate
|
||||||
break
|
break
|
||||||
else:
|
|
||||||
raise FileNotFoundError(f'{name} configuration file not found: '
|
if not os.path.lexists(filename):
|
||||||
f'{filename if filename else default_path}')
|
raise FileNotFoundError(f'{name} configuration file not found: '
|
||||||
|
f'{filename if filename else default_path}')
|
||||||
|
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.templates = []
|
self.templates = []
|
||||||
|
|||||||
Reference in New Issue
Block a user