From 286a1fc22ebb34b45d82b83f14b6e24b0cd51d4a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Dec 2010 09:12:11 -0700 Subject: [PATCH] run in debug mode: Add a sleep --- src/calibre/gui2/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index d355fe600e..d8316cbf68 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -266,6 +266,7 @@ def run_in_debug_mode(logpath=None): exe = base + '-debug' + ext print 'Starting debug executable:', exe subprocess.Popen([exe, '--gui-debug', logpath], stdout=fd, stderr=fd) + time.sleep(1) # Give subprocess a change to launch, before fd is closed def run_gui(opts, args, actions, listener, app, gui_debug=None): initialize_file_icon_provider()