mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[skip travis] renaming
to avoid using same folder when using pip install for example
This commit is contained in:
		| @@ -7,10 +7,10 @@ from os.path import dirname as dirn | ||||
| import sys | ||||
|  | ||||
| sys.path.insert(0, dirn(dirn((os.path.abspath(__file__))))) | ||||
| import youtube_dl | ||||
| from youtube_dl.utils import shell_quote | ||||
| import youtube_dlc | ||||
| from youtube_dlc.utils import shell_quote | ||||
|  | ||||
| FISH_COMPLETION_FILE = 'youtube-dl.fish' | ||||
| FISH_COMPLETION_FILE = 'youtube-dlc.fish' | ||||
| FISH_COMPLETION_TEMPLATE = 'devscripts/fish-completion.in' | ||||
|  | ||||
| EXTRA_ARGS = { | ||||
| @@ -30,7 +30,7 @@ def build_completion(opt_parser): | ||||
|     for group in opt_parser.option_groups: | ||||
|         for option in group.option_list: | ||||
|             long_option = option.get_opt_string().strip('-') | ||||
|             complete_cmd = ['complete', '--command', 'youtube-dl', '--long-option', long_option] | ||||
|             complete_cmd = ['complete', '--command', 'youtube-dlc', '--long-option', long_option] | ||||
|             if option._short_opts: | ||||
|                 complete_cmd += ['--short-option', option._short_opts[0].strip('-')] | ||||
|             if option.help != optparse.SUPPRESS_HELP: | ||||
| @@ -45,5 +45,5 @@ def build_completion(opt_parser): | ||||
|         f.write(filled_template) | ||||
|  | ||||
|  | ||||
| parser = youtube_dl.parseOpts()[0] | ||||
| parser = youtube_dlc.parseOpts()[0] | ||||
| build_completion(parser) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Unknown
					Unknown