Commit 6afda593 authored by Vincent Michel's avatar Vincent Michel
Browse files

Merge branch 'fix_cfg' into 'master'

fix for the get_config_files

See merge request !2
parents 22522cc9 c178c0b5
Pipeline #5794 passed with stages
in 1 minute and 14 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)]
Supports Markdown
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