Fix path errors when adding torrents externally in Windows

This commit is contained in:
Andrew Resch 2009-10-09 00:19:07 +00:00
commit 844f98db04

View file

@ -70,7 +70,8 @@ class IPCInterface(component.Component):
# Make the args absolute paths # Make the args absolute paths
_args = [] _args = []
for arg in args: for arg in args:
_args.append(os.path.abspath(arg)) if arg.strip():
_args.append(os.path.abspath(arg))
args = _args args = _args
socket = os.path.join(deluge.configmanager.get_config_dir("ipc"), "deluge-gtk") socket = os.path.join(deluge.configmanager.get_config_dir("ipc"), "deluge-gtk")