summaryrefslogtreecommitdiff
path: root/src/util.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-21 22:38:31 +0000
committerdavidovski <david@davidovski.xyz>2021-11-21 22:38:31 +0000
commitc918fe37aef11dc5e1c7cf90535c02d3224c0d9d (patch)
tree2fd09f6a972f9ec53327fe16a812f23a09d59345 /src/util.py
parentce02c1f3549544486a82d71c4510a19fcbbf1f21 (diff)
fixed path adding issues
Diffstat (limited to 'src/util.py')
-rw-r--r--src/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.py b/src/util.py
index d911ce8..5ca3310 100644
--- a/src/util.py
+++ b/src/util.py
@@ -11,7 +11,7 @@ DEFAULT_BAR_COLOR_RESET = colors.BG_BLACK + colors.CYAN
def add_path(*argv):
a = argv[0]
for b in argv[1:]:
- a = a + (b if a[-1] == "/" else f"/{b}")
+ a = a + ("" if a[-1] == "/" else "/") + (b[1:] if b[0] == "/" else b)
return a
def loading_bar(completed, total, text,