mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 04:53:58 +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:
|
else:
|
||||||
path = Path(path_str)
|
path = Path(path_str)
|
||||||
if not path.is_absolute():
|
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)):
|
if path.is_file() or shutil.which(str(path)):
|
||||||
return
|
return
|
||||||
print(
|
print(
|
||||||
|
|||||||
Reference in New Issue
Block a user