Make `self.root` an absolute path

Fix comparisons of relative and absolute paths like the one described
at https://github.com/galaxyproject/galaxy/pull/921#discussion_r304356880
This commit is contained in:
Nicola Soranzo
2019-07-17 12:52:08 +01:00
parent e7165c37e3
commit 397be57d0c
+1 -1
View File
@@ -100,7 +100,7 @@ def resolve_path(path, root):
def find_root(kwargs):
root = kwargs.get('root_dir', '.')
root = os.path.abspath(kwargs.get('root_dir', '.'))
return root