Fix path error when relative '.' used as backup source directory

This commit is contained in:
Donncha Ó Cearbhaill
2022-03-20 15:56:13 +01:00
parent d6af7c8cca
commit e3a8bde150

View File

@@ -7,6 +7,7 @@ import binascii
import glob
import logging
import os
import os.path
import shutil
import sqlite3
@@ -27,7 +28,7 @@ class DecryptBackup:
:param backup_path: Path to the encrypted backup folder
:param dest_path: Path to the folder where to store the decrypted backup
"""
self.backup_path = backup_path
self.backup_path = os.path.abspath(backup_path)
self.dest_path = dest_path
self._backup = None
self._decryption_key = None