aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts/check-porn.py
diff options
context:
space:
mode:
Diffstat (limited to 'devscripts/check-porn.py')
-rw-r--r--devscripts/check-porn.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/devscripts/check-porn.py b/devscripts/check-porn.py
index 6188f68ec..08f663e4b 100644
--- a/devscripts/check-porn.py
+++ b/devscripts/check-porn.py
@@ -10,11 +10,12 @@ pass the list filename as the only argument
# Allow direct execution
import os
import sys
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import gettestcases
-from yt_dlp.utils import compat_urllib_parse_urlparse
-from yt_dlp.utils import compat_urllib_request
+
+from yt_dlp.utils import compat_urllib_parse_urlparse, compat_urllib_request
if len(sys.argv) > 1:
METHOD = 'LIST'