]> jfr.im git - yt-dlp.git/blobdiff - devscripts/zsh-completion.py
[cleanup] Misc cleanup (#2173)
[yt-dlp.git] / devscripts / zsh-completion.py
index 2d5ac2a45da0bc67a87a031b7364c0a49e8991c3..06660d8fd47a482a89fd59a0f32b3cbff156680d 100755 (executable)
@@ -1,9 +1,9 @@
 #!/usr/bin/env python3
 import os
 import sys
-from os.path import dirname as dirn
 
-sys.path.insert(0, dirn(dirn(os.path.abspath(__file__))))
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+
 import yt_dlp
 
 ZSH_COMPLETION_FILE = "completions/zsh/_yt-dlp"