Commit c178c0b5 authored by DamN's avatar DamN
Browse files

fix for the get_config_files

parent 22522cc9
Pipeline #5309 passed with stage
in 1 minute and 43 seconds
......@@ -686,7 +686,7 @@ def get_config_files(*path):
path = os.path.join(*path)
ext = b'.ini' if isinstance(path, bytes) else '.ini'
sep = b'/' if isinstance(path, bytes) else '/'
return [os.path.join(dp, f).lstrip(path).lstrip(sep)
return [os.path.relpath(os.path.join(dp, f), path).lstrip(sep)
for dp, dn, fn in os.walk(path)
for f in fn
if f.endswith(ext)]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment