mirror of
				https://github.com/karl0ss/GoGoDownloader.git
				synced 2025-11-04 00:21:13 +00:00 
			
		
		
		
	added a crossplatform support
This commit is contained in:
		
							parent
							
								
									abc745dc1c
								
							
						
					
					
						commit
						0e1ccd1f73
					
				@ -15,6 +15,7 @@ try:
 | 
			
		||||
except (AttributeError):
 | 
			
		||||
    pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def bitanime():
 | 
			
		||||
    again = True
 | 
			
		||||
    while again:
 | 
			
		||||
@ -92,6 +93,7 @@ def bitanime():
 | 
			
		||||
                os.startfile(folder)
 | 
			
		||||
            except (AttributeError):
 | 
			
		||||
                import sys, subprocess
 | 
			
		||||
 | 
			
		||||
                opener = "open" if sys.platform == "darwin" else "xdg-open"
 | 
			
		||||
                subprocess.call([opener, folder])
 | 
			
		||||
 | 
			
		||||
@ -112,6 +114,7 @@ def bitanime():
 | 
			
		||||
                os.startfile(folder)
 | 
			
		||||
            except (AttributeError):
 | 
			
		||||
                import sys, subprocess
 | 
			
		||||
 | 
			
		||||
                opener = "open" if sys.platform == "darwin" else "xdg-open"
 | 
			
		||||
                subprocess.call([opener, folder])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user