py2app doesn't have site.USER_BASE

issue4269
review14591003
This commit is contained in:
Cédric Krier committed 2014-10-21 22:01:23 +02:00
1 parent bed84d8c2e
commit a89ffa343d
1 file changed
+1 -1
+1 -1
View File
@@ -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