summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
25633ed)
Relatived Path function failed if the value is an empty string.
Issue-ID: VVP-229
Signed-off-by: Lokur, Manish <manish.shivakumar.lokur@att.com>
Change-Id: I811234cfc7c3c438bd8934568a3ccbb02bac013a
def relative_paths(base_dir, paths):
def relative_paths(base_dir, paths):
- return [os.path.relpath(p, base_dir) for p in paths]
+ return [os.path.relpath(p, base_dir) for p in paths if p != ""]
# noinspection PyTypeChecker
# noinspection PyTypeChecker