From 3c7f0c2ffa1deec35108241d7194f0cee36a0192 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 Mar 2008 19:20:40 +0000 Subject: [PATCH] Fix #540 --- src/libprs500/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index 841953b836..a377930cd2 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -266,6 +266,7 @@ def detect_ncpus(): #return the default value return 1 + def launch(path_or_url): if islinux: subprocess.Popen(('xdg-open', path_or_url)) @@ -273,4 +274,4 @@ def launch(path_or_url): subprocess.Popen(('open', path_or_url)) elif iswindows: import win32api - win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 0) + win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1)