summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
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)))