summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-05 19:07:36 +0200
committerMaxim Devaev <[email protected]>2023-03-05 19:35:17 +0200
commitacf55a3b2742105af682999626dc733a110f5b86 (patch)
tree860fe240635de7e3b6513c0ed7a746a67a581290 /kvmd/plugins
parent7a1f8f32da0550cc140d4ec6a6f3206e21a31a81 (diff)
normpath
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/msd/otg/drive.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py
index 407aef9e..9fc947ab 100644
--- a/kvmd/plugins/msd/otg/drive.py
+++ b/kvmd/plugins/msd/otg/drive.py
@@ -57,7 +57,8 @@ class Drive:
self.__set_param("forced_eject", "")
def get_image_path(self) -> str:
- return self.__get_param("file")
+ path = self.__get_param("file")
+ return (os.path.normpath(path) if path else "")
def set_cdrom_flag(self, flag: bool) -> None:
self.__set_param("cdrom", str(int(flag)))