From 6c5956d9bc4143f885ddfd629f563074b6776533 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= <oddstr13@openshell.no>
Date: Fri, 4 Sep 2020 23:02:26 +0200
Subject: [PATCH] Normalize path for os.mkdir

It's not happy with `foo/.`
---
 jellyfin_kodi/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jellyfin_kodi/views.py b/jellyfin_kodi/views.py
index 7345c299..0c036867 100644
--- a/jellyfin_kodi/views.py
+++ b/jellyfin_kodi/views.py
@@ -120,7 +120,7 @@ def verify_kodi_defaults():
         dest_path = os.path.join(dest_base_path, relative_path)
 
         if not os.path.exists(dest_path):
-            os.mkdir(dest_path)
+            os.mkdir(os.path.normpath(dest_path))
 
         for file_name in files:
             dest_file = os.path.join(dest_path, file_name)