]> jfr.im git - yt-dlp.git/blobdiff - devscripts/fish-completion.py
[cleanup] Sort imports
[yt-dlp.git] / devscripts / fish-completion.py
index 1c91f722b8ad2be38e2fbe2d7f35dc0272fe5c93..c318b69e412de613b88d63b2065f15e8a842e851 100755 (executable)
@@ -1,16 +1,14 @@
-#!/usr/bin/env python
-from __future__ import unicode_literals
-
+#!/usr/bin/env python3
 import optparse
 import os
-from os.path import dirname as dirn
 import sys
+from os.path import dirname as dirn
 
-sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
+sys.path.insert(0, dirn(dirn(os.path.abspath(__file__))))
 import yt_dlp
 from yt_dlp.utils import shell_quote
 
-FISH_COMPLETION_FILE = 'yt-dlp.fish'
+FISH_COMPLETION_FILE = 'completions/fish/yt-dlp.fish'
 FISH_COMPLETION_TEMPLATE = 'devscripts/fish-completion.in'
 
 EXTRA_ARGS = {