changeset 474:f29923ac1119

fix home finder to work with windows
author catherine@dellzilla
date Fri, 05 Mar 2010 15:35:01 -0500
parents d710a48e6fb7
children 8937b1476c42
files sqlpython/connections.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sqlpython/connections.py	Fri Mar 05 12:59:28 2010 -0500
+++ b/sqlpython/connections.py	Fri Mar 05 15:35:01 2010 -0500
@@ -223,7 +223,7 @@
     password = None
     port = None
     uri = None
-    pickledir = os.path.join(os.getenv('HOME'), '.sqlpython')
+    pickledir = os.path.join(os.path.expanduser('~'), '.sqlpython')
     connection_uri_parser = re.compile('(postgres|oracle|mysql|sqlite|mssql):/(.*$)', re.IGNORECASE)
     
     def __init__(self, arg, opts, default_rdbms = 'oracle'):