Skip to content

Commit

Permalink
Merge pull request odoo#1343 from vice/master
Browse files Browse the repository at this point in the history
[FIX] data dir when home is not a directory
  • Loading branch information
xmo-odoo committed Sep 2, 2014
2 parents 56e6f63 + 6eb3d8b commit b4b40a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def check_ssl():

def _get_default_datadir():
home = os.path.expanduser('~')
func = appdirs.user_data_dir if os.path.exists(home) else appdirs.site_data_dir
func = appdirs.user_data_dir if os.path.isdir(home) else appdirs.site_data_dir
# No "version" kwarg as session and filestore paths are shared against series
return func(appname='Odoo', appauthor=release.author)

Expand Down

0 comments on commit b4b40a4

Please sign in to comment.