Fix the path error under Linux. Specify Python3 as the runtime.
This commit is contained in:
		
							parent
							
								
									642c8103c7
								
							
						
					
					
						commit
						1086447369
					
				
							
								
								
									
										1
									
								
								ADC_function.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								ADC_function.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
| 
 | 
 | ||||||
| import requests | import requests | ||||||
|  | |||||||
							
								
								
									
										39
									
								
								AV_Data_Capture.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										39
									
								
								AV_Data_Capture.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
| 
 | 
 | ||||||
| import glob | import glob | ||||||
| @ -30,26 +31,26 @@ def UpdateCheck(): | |||||||
|         print('[+]Update Check disabled!') |         print('[+]Update Check disabled!') | ||||||
| def movie_lists(): | def movie_lists(): | ||||||
|     if config['directory_capture']['switch'] == '0' or config['directory_capture']['switch'] == '': |     if config['directory_capture']['switch'] == '0' or config['directory_capture']['switch'] == '': | ||||||
|         a2 = glob.glob(r".\*.mp4") |         a2 = glob.glob(r'./*.mp4') # 使用 '/' 可以同时兼容Linux | ||||||
|         b2 = glob.glob(r".\*.avi") |         b2 = glob.glob(r'./*.avi') | ||||||
|         c2 = glob.glob(r".\*.rmvb") |         c2 = glob.glob(r'./*.rmvb') | ||||||
|         d2 = glob.glob(r".\*.wmv") |         d2 = glob.glob(r'./*.wmv') | ||||||
|         e2 = glob.glob(r".\*.mov") |         e2 = glob.glob(r'./*.mov') | ||||||
|         f2 = glob.glob(r".\*.mkv") |         f2 = glob.glob(r'./*.mkv') | ||||||
|         g2 = glob.glob(r".\*.flv") |         g2 = glob.glob(r'./*.flv') | ||||||
|         h2 = glob.glob(r".\*.ts") |         h2 = glob.glob(r'./*.ts') | ||||||
|         total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2 |         total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2 | ||||||
|         return total |         return total | ||||||
|     elif config['directory_capture']['switch'] == '1': |     elif config['directory_capture']['switch'] == '1': | ||||||
|         directory = config['directory_capture']['directory'] |         directory = config['directory_capture']['directory'] | ||||||
|         a2 = glob.glob(r".\\" + directory + "\*.mp4") |         a2 = glob.glob(r"./" + directory + "/*.mp4") | ||||||
|         b2 = glob.glob(r".\\" + directory + "\*.avi") |         b2 = glob.glob(r"./" + directory + "/*.avi") | ||||||
|         c2 = glob.glob(r".\\" + directory + "\*.rmvb") |         c2 = glob.glob(r"./" + directory + "/*.rmvb") | ||||||
|         d2 = glob.glob(r".\\" + directory + "\*.wmv") |         d2 = glob.glob(r"./" + directory + "/*.wmv") | ||||||
|         e2 = glob.glob(r".\\" + directory + "\*.mov") |         e2 = glob.glob(r"./" + directory + "/*.mov") | ||||||
|         f2 = glob.glob(r".\\" + directory + "\*.mkv") |         f2 = glob.glob(r"./" + directory + "/*.mkv") | ||||||
|         g2 = glob.glob(r".\\" + directory + "\*.flv") |         g2 = glob.glob(r"./" + directory + "/*.flv") | ||||||
|         h2 = glob.glob(r".\\" + directory + "\*.ts") |         h2 = glob.glob(r"./" + directory + "/*.ts") | ||||||
|         total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2 |         total = a2 + b2 + c2 + d2 + e2 + f2 + g2 + h2 | ||||||
|         return total |         return total | ||||||
| def CreatFailedFolder(): | def CreatFailedFolder(): | ||||||
| @ -121,11 +122,11 @@ def getNumber(filepath): | |||||||
| 
 | 
 | ||||||
| def RunCore(): | def RunCore(): | ||||||
|     if os.path.exists('core.py'): |     if os.path.exists('core.py'): | ||||||
|         os.system('python core.py' + '   "' + i + '" --number "'+getNumber(i)+'"')     #从py文件启动(用于源码py) |         os.popen(sys.executable + ' core.py' + '   "' + i + '" --number "'+getNumber(i)+'"')     #从py文件启动(用于源码py) | ||||||
|     elif os.path.exists('core.exe'): |     elif os.path.exists('core.exe'): | ||||||
|         os.system('core.exe' + '   "' + i + '" --number "'+getNumber(i)+'"')           #从exe启动(用于EXE版程序) |         os.popen('core.exe' + '   "' + i + '" --number "'+getNumber(i)+'"')           #从exe启动(用于EXE版程序) | ||||||
|     elif os.path.exists('core.py') and os.path.exists('core.exe'): |     elif os.path.exists('core.py') and os.path.exists('core.exe'): | ||||||
|         os.system('python core.py' + '   "' + i + '" --number "' + getNumber(i) + '"') #从py文件启动(用于源码py) |         os.popen(sys.executable + ' core.py' + '   "' + i + '" --number "' + getNumber(i) + '"') #从py文件启动(用于源码py) | ||||||
| 
 | 
 | ||||||
| if __name__ =='__main__': | if __name__ =='__main__': | ||||||
|     print('[*]===========AV Data Capture===========') |     print('[*]===========AV Data Capture===========') | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								core.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								core.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
| 
 | 
 | ||||||
| import re | import re | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								fc2fans_club.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								fc2fans_club.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| import re | import re | ||||||
| from lxml import etree#need install | from lxml import etree#need install | ||||||
| import json | import json | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								javbus.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								javbus.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| import re | import re | ||||||
| import requests #need install | import requests #need install | ||||||
| from pyquery import PyQuery as pq#need install | from pyquery import PyQuery as pq#need install | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								javdb.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								javdb.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -1,3 +1,4 @@ | |||||||
|  | #!/usr/bin/env python3 | ||||||
| import re | import re | ||||||
| from lxml import etree | from lxml import etree | ||||||
| import json | import json | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user