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:
+2
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user