From b1bb88e0f255481cd4b741b6dc708a6fbedefcc3 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Fri, 10 May 2024 14:20:28 -0700 Subject: [PATCH] os sep --- src/ytdl_sub/config/config_validator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ytdl_sub/config/config_validator.py b/src/ytdl_sub/config/config_validator.py index 8aa4f70b..55a91f55 100644 --- a/src/ytdl_sub/config/config_validator.py +++ b/src/ytdl_sub/config/config_validator.py @@ -1,4 +1,5 @@ import os +import posixpath from typing import Any from typing import Dict from typing import Optional @@ -148,8 +149,8 @@ class ConfigOptions(StrictDictValidator): The directory to temporarily store downloaded files before moving them into their final directory. Defaults to .ytdl-sub-working-directory """ - # Expands tildas to actual paths - return os.path.expanduser(self._working_directory.value) + # Expands tildas to actual paths, use native os sep + return os.path.expanduser(self._working_directory.value.replace(posixpath.sep, os.sep)) @property def umask(self) -> Optional[str]: