os sep
This commit is contained in:
parent
b420f502ee
commit
b1bb88e0f2
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import posixpath
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
@ -148,8 +149,8 @@ class ConfigOptions(StrictDictValidator):
|
||||||
The directory to temporarily store downloaded files before moving them into their final
|
The directory to temporarily store downloaded files before moving them into their final
|
||||||
directory. Defaults to .ytdl-sub-working-directory
|
directory. Defaults to .ytdl-sub-working-directory
|
||||||
"""
|
"""
|
||||||
# Expands tildas to actual paths
|
# Expands tildas to actual paths, use native os sep
|
||||||
return os.path.expanduser(self._working_directory.value)
|
return os.path.expanduser(self._working_directory.value.replace(posixpath.sep, os.sep))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def umask(self) -> Optional[str]:
|
def umask(self) -> Optional[str]:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue