don't replace .
This commit is contained in:
parent
1b91006dcf
commit
5d31ac23cd
@ -42,7 +42,10 @@ def get_files(dirname):
|
|||||||
|
|
||||||
|
|
||||||
def short_path(f):
|
def short_path(f):
|
||||||
return str(f).replace(short_path.base_dir, "")
|
if "/" in short_path.base_dir:
|
||||||
|
return str(f).replace(short_path.base_dir, "")
|
||||||
|
else:
|
||||||
|
return str(f)
|
||||||
|
|
||||||
|
|
||||||
short_path.base_dir = ""
|
short_path.base_dir = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user