mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-04 15:38:14 +02:00
Fix path resolution in ConfigLoader to use script location instead of config dir location
This commit is contained in:
1 parent
6d3591ed54
commit
6c7d3b2825
1 file changed
+2
-1
+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