From 844f98db045970d9797ff92f00bd0189340907af Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 9 Oct 2009 00:19:07 +0000 Subject: [PATCH] Fix path errors when adding torrents externally in Windows --- deluge/ui/gtkui/ipcinterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/ipcinterface.py b/deluge/ui/gtkui/ipcinterface.py index 01e9552db..ba2f7c789 100644 --- a/deluge/ui/gtkui/ipcinterface.py +++ b/deluge/ui/gtkui/ipcinterface.py @@ -70,7 +70,8 @@ class IPCInterface(component.Component): # Make the args absolute paths _args = [] for arg in args: - _args.append(os.path.abspath(arg)) + if arg.strip(): + _args.append(os.path.abspath(arg)) args = _args socket = os.path.join(deluge.configmanager.get_config_dir("ipc"), "deluge-gtk")