mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
Merge pull request #187 from ThomasWaldmann/mount-relative-dir
use absolute path, attic issue #200, attic issue #137
This commit is contained in:
commit
f852175c44
1 changed files with 3 additions and 3 deletions
|
@ -50,14 +50,14 @@ class ObjectNotFound(Error):
|
|||
"""Object with key {} not found in repository {}."""
|
||||
|
||||
def __init__(self, path, create=False, exclusive=False):
|
||||
self.path = path
|
||||
self.path = os.path.abspath(path)
|
||||
self.io = None
|
||||
self.lock = None
|
||||
self.index = None
|
||||
self._active_txn = False
|
||||
if create:
|
||||
self.create(path)
|
||||
self.open(path, exclusive)
|
||||
self.create(self.path)
|
||||
self.open(self.path, exclusive)
|
||||
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
|
Loading…
Reference in a new issue