mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #540
This commit is contained in:
		
							parent
							
								
									e54893d9a8
								
							
						
					
					
						commit
						3c7f0c2ffa
					
				@ -266,6 +266,7 @@ def detect_ncpus():
 | 
				
			|||||||
    #return the default value
 | 
					    #return the default value
 | 
				
			||||||
    return 1
 | 
					    return 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def launch(path_or_url):
 | 
					def launch(path_or_url):
 | 
				
			||||||
    if islinux:
 | 
					    if islinux:
 | 
				
			||||||
        subprocess.Popen(('xdg-open', path_or_url))
 | 
					        subprocess.Popen(('xdg-open', path_or_url))
 | 
				
			||||||
@ -273,4 +274,4 @@ def launch(path_or_url):
 | 
				
			|||||||
        subprocess.Popen(('open', path_or_url))
 | 
					        subprocess.Popen(('open', path_or_url))
 | 
				
			||||||
    elif iswindows:
 | 
					    elif iswindows:
 | 
				
			||||||
        import win32api
 | 
					        import win32api
 | 
				
			||||||
        win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 0)
 | 
					        win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user