py2app doesn't have site.USER_BASE
issue4269 review14591003
This commit is contained in:
1 parent
bed84d8c2e
commit
a89ffa343d
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user