mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 22:44:04 +08:00
Make sure we won't fail on missing env variable
This commit is contained in:
parent
293d88e62f
commit
9aab2745d0
1 changed files with 3 additions and 3 deletions
|
@ -265,9 +265,9 @@ class ResticRunner:
|
|||
binary = "restic.exe"
|
||||
probe_paths = self.binary_search_paths + [
|
||||
"",
|
||||
os.path.join(os.environ.get("windir"), "SYSTEM32"),
|
||||
os.environ.get("windir"),
|
||||
os.path.join(os.environ.get("ProgramFiles"), "restic"),
|
||||
os.path.join(os.environ.get("windir", ''), "SYSTEM32"),
|
||||
os.environ.get("windir", ''),
|
||||
os.path.join(os.environ.get("ProgramFiles", ''), "restic"),
|
||||
]
|
||||
else:
|
||||
binary = "restic"
|
||||
|
|
Loading…
Reference in a new issue