From a89ffa343d9d4261efb3389cdea24540625b3703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Oct 2014 22:01:23 +0200 Subject: [PATCH] py2app doesn't have site.USER_BASE issue4269 review14591003 --- tryton/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/config.py b/tryton/config.py index cbd13de09c..be3c9edbba 100644 --- a/tryton/config.py +++ b/tryton/config.py @@ -181,7 +181,7 @@ else: unicode(os.path.dirname(__file__), sys.getfilesystemencoding()), '..'))) -for dir in [CURRENT_DIR, site.USER_BASE, sys.prefix]: +for dir in [CURRENT_DIR, getattr(site, 'USER_BASE', sys.prefix), sys.prefix]: PIXMAPS_DIR = os.path.join(dir, 'share', 'pixmaps', 'tryton') if os.path.isdir(PIXMAPS_DIR): break