summaryrefslogtreecommitdiffstats
path: root/src/utils/probe.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-04-28 16:11:30 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-04-28 16:11:30 +0200
commitad2d4a1f1a60b7eab92de525d02f689ed7fb6967 (patch)
tree0d0db351ee1141bf622f2960744eef6e15fcc871 /src/utils/probe.py
parente6079c42ea48a401b4ef61eb103b3a0fba15a820 (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.
Diffstat (limited to 'src/utils/probe.py')
-rw-r--r--src/utils/probe.py2
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):