From 4477808d1c563d4cbeeeb2838cc1f4940e8de386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 30 Sep 2023 17:02:57 +0200 Subject: [PATCH] fix symlink resolution in __main__.py adapt ytdl order --- gallery_dl/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/__main__.py b/gallery_dl/__main__.py index 9832190d..db3a34e8 100644 --- a/gallery_dl/__main__.py +++ b/gallery_dl/__main__.py @@ -11,8 +11,8 @@ import sys if not __package__ and not hasattr(sys, "frozen"): import os.path - path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) - sys.path.insert(0, os.path.realpath(path)) + path = os.path.realpath(os.path.abspath(__file__)) + sys.path.insert(0, os.path.dirname(os.path.dirname(path))) import gallery_dl