mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	 Yen Chi Hsuan
					Yen Chi Hsuan
				
			
				
					committed by
					
						 Jaime Marquínez Ferrándiz
						Jaime Marquínez Ferrándiz
					
				
			
			
				
	
			
			
			 Jaime Marquínez Ferrándiz
						Jaime Marquínez Ferrándiz
					
				
			
						parent
						
							2f962d0a91
						
					
				
				
					commit
					95240b8093
				
			| @@ -5,7 +5,7 @@ import os | |||||||
| from os.path import dirname as dirn | from os.path import dirname as dirn | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| sys.path.append(dirn(dirn((os.path.abspath(__file__))))) | sys.path.insert(0, dirn(dirn((os.path.abspath(__file__))))) | ||||||
| import youtube_dl | import youtube_dl | ||||||
|  |  | ||||||
| BASH_COMPLETION_FILE = "youtube-dl.bash-completion" | BASH_COMPLETION_FILE = "youtube-dl.bash-completion" | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ import os | |||||||
| from os.path import dirname as dirn | from os.path import dirname as dirn | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| sys.path.append(dirn(dirn((os.path.abspath(__file__))))) | sys.path.insert(0, dirn(dirn((os.path.abspath(__file__))))) | ||||||
| import youtube_dl | import youtube_dl | ||||||
| from youtube_dl.utils import shell_quote | from youtube_dl.utils import shell_quote | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ import os | |||||||
| import textwrap | import textwrap | ||||||
|  |  | ||||||
| # We must be able to import youtube_dl | # We must be able to import youtube_dl | ||||||
| sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) | sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) | ||||||
|  |  | ||||||
| import youtube_dl | import youtube_dl | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ import sys | |||||||
|  |  | ||||||
| # Import youtube_dl | # Import youtube_dl | ||||||
| ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') | ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') | ||||||
| sys.path.append(ROOT_DIR) | sys.path.insert(0, ROOT_DIR) | ||||||
| import youtube_dl | import youtube_dl | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ import os | |||||||
| from os.path import dirname as dirn | from os.path import dirname as dirn | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| sys.path.append(dirn(dirn((os.path.abspath(__file__))))) | sys.path.insert(0, dirn(dirn((os.path.abspath(__file__))))) | ||||||
| import youtube_dl | import youtube_dl | ||||||
|  |  | ||||||
| ZSH_COMPLETION_FILE = "youtube-dl.zsh" | ZSH_COMPLETION_FILE = "youtube-dl.zsh" | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ if __package__ is None and not hasattr(sys, "frozen"): | |||||||
|     # direct call of __main__.py |     # direct call of __main__.py | ||||||
|     import os.path |     import os.path | ||||||
|     path = os.path.realpath(os.path.abspath(__file__)) |     path = os.path.realpath(os.path.abspath(__file__)) | ||||||
|     sys.path.append(os.path.dirname(os.path.dirname(path))) |     sys.path.insert(0, os.path.dirname(os.path.dirname(path))) | ||||||
|  |  | ||||||
| import youtube_dl | import youtube_dl | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user