aboutsummaryrefslogtreecommitdiffstats
path: root/acispy/manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'acispy/manifest.py')
-rw-r--r--acispy/manifest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/acispy/manifest.py b/acispy/manifest.py
index 03320f8..198d47e 100644
--- a/acispy/manifest.py
+++ b/acispy/manifest.py
@@ -153,6 +153,8 @@ class Manifest:
if isinstance(path, list):
abspath = [os.path.abspath(p) for p in path]
relpath = [os.path.relpath(p, start=dirname) for p in abspath]
+ if len(relpath) == 1:
+ relpath = relpath[0]
else:
abspath = os.path.abspath(path)
relpath = os.path.relpath(abspath, start=dirname)