mirror of
https://github.com/Dvorinka/SpotifyRecAlg.git
synced 2026-06-04 12:33:03 +00:00
18 lines
282 B
Python
18 lines
282 B
Python
import platform
|
|
|
|
IS_WIN = platform.system() == "Windows"
|
|
|
|
|
|
def is_windows():
|
|
"""
|
|
Returns True if the OS is Windows.
|
|
"""
|
|
return IS_WIN
|
|
|
|
|
|
def win_replace_slash(path: str):
|
|
if is_windows():
|
|
return path.replace("\\", "/").replace("//", "/")
|
|
|
|
return path
|