diff --git a/pyfpdb/Configuration.py b/pyfpdb/Configuration.py index 8a2d3fb4..4d468405 100644 --- a/pyfpdb/Configuration.py +++ b/pyfpdb/Configuration.py @@ -55,7 +55,10 @@ log = logging.getLogger("config") def get_default_config_path(): """Returns the path where the fpdb config file _should_ be stored.""" if os.name == 'posix': - config_path = os.path.join(os.path.expanduser("~"), '.fpdb') + if (os.uname()[0]=="Darwin"): + config_path = os.path.join(os.getenv("HOME"), ".fpdb") + else: + config_path = os.path.join(os.path.expanduser("~"), '.fpdb') elif os.name == 'nt': config_path = os.path.join(unicode(os.environ[u"APPDATA"], "latin-1"), u"fpdb") #print u"path after joining in get_default_config_path:",config_path