Skip to content

Commit

Permalink
Minor fix of local fs base handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jan 17, 2024
1 parent 5d0f2ed commit d687241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions law/target/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, section=None, base=None, **kwargs):
)

# set the base
self.base = os.path.abspath(str(base))
self.base = os.path.abspath(self._unscheme(str(base)))

super(LocalFileSystem, self).__init__(**kwargs)

Expand All @@ -108,7 +108,7 @@ def abspath(self, path):

# join with the base path
base = os.path.expandvars(os.path.expanduser(str(self.base)))
path = os.path.join(base, path)
path = os.path.join(base, path.lstrip(os.sep))

return os.path.abspath(path)

Expand Down

0 comments on commit d687241

Please sign in to comment.