diff --git a/oceansdb/utils.py b/oceansdb/utils.py
index <HASH>..<HASH> 100644
--- a/oceansdb/utils.py
+++ b/oceansdb/utils.py
@@ -19,9 +19,6 @@ else:
     from urlparse import urlparse
 
 
-def oceansdb_dir():
-    return os.path.expanduser(os.getenv('OCEANSDB_DIR', '~/.config/oceansdb'))
-
 """
 
         http://data.nodc.noaa.gov/thredds/dodsC/woa/WOA13/DATAv2/temperature/netcdf/decav/0.25/woa13_decav_t00_04v2.nc.html
@@ -41,6 +38,13 @@ http://data.nodc.noaa.gov/thredds/fileServer/woa/WOA13/DATAv2/temperature/netcdf
 """
 
 
+def oceansdb_dir():
+    """Path where oceansDB databases files are saved
+    """
+    dbpath = os.getenv('OCEANSDB_DIR', '~/.config/oceansdb')
+    return os.path.expanduser(dbpath).replace('/', os.path.sep)
+
+
 class Dataset_flex(object):
     def __init__(self, filename, **kwargs):
         self.ds = Dataset(filename, mode='r')
Generalizing oceansdb_dir() path to include Windows.

Linux and Windows use opposite directory separators.