diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2022-04-28 16:11:30 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2022-04-28 16:11:30 +0200 |
commit | ad2d4a1f1a60b7eab92de525d02f689ed7fb6967 (patch) | |
tree | 0d0db351ee1141bf622f2960744eef6e15fcc871 | |
parent | e6079c42ea48a401b4ef61eb103b3a0fba15a820 (diff) |
utils: fix winreghives path string
Adds missing slash in the windows reghives path f-string.
When calling os_probe inside refresh (live/ogOperations) the mountpoint
is passed without a trailing slash.
-rw-r--r-- | src/utils/probe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/probe.py b/src/utils/probe.py index f1bdc27..fa0ca83 100644 --- a/src/utils/probe.py +++ b/src/utils/probe.py @@ -81,7 +81,7 @@ def os_probe(mountpoint): Returns a string depending on the OS it detects. """ - winreghives = f'{mountpoint}Windows/System32/config' + winreghives = f'{mountpoint}/Windows/System32/config' osrelease = f'{mountpoint}/etc/os-release' if os.path.exists(osrelease): |