mirror of https://git.48k.eu/ogclient
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.more_events
parent
e6079c42ea
commit
ad2d4a1f1a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue