From bf44fea46a31e2e0680f242618a453bb5abf9d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Dec 2008 19:15:11 +0100 Subject: [PATCH] Fix find_in_path to return the name if not found in path --- trytond/tools/misc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trytond/tools/misc.py b/trytond/tools/misc.py index 69287a5fbf..f0695ac925 100644 --- a/trytond/tools/misc.py +++ b/trytond/tools/misc.py @@ -1,4 +1,5 @@ -#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. +#This file is part of Tryton. The COPYRIGHT file at the top level of +#this repository contains the full copyright notices and license terms. # -*- coding: utf-8 -*- """ Miscelleanous tools used by tryton @@ -27,7 +28,7 @@ def find_in_path(name): val = os.path.join(directory, name) if os.path.isfile(val) or os.path.islink(val): return val - return None + return name def find_pg_tool(name): if CONFIG['pg_path'] and CONFIG['pg_path'] != 'None':