1
0
mirror of https://github.com/darkzoul5/YoutubePlaylistSync.git synced 2026-07-03 12:34:00 +03:00

Fix path resolution in ConfigLoader to use script location instead of config dir location

This commit is contained in:
2025-10-16 13:59:04 +03:00
parent 6d3591ed54
commit 6c7d3b2825
+2 -1
View File
@@ -98,7 +98,8 @@ class ConfigLoader:
else:
path = Path(path_str)
if not path.is_absolute():
path = (self.config_path.parent / path).resolve()
script_dir = Path(__file__).resolve().parent
path = (script_dir / path).resolve()
if path.is_file() or shutil.which(str(path)):
return
print(