Permalink
Browse files

Have Python figure out the user's home directory.

  • Loading branch information...
1 parent 5943894 commit b033acd5a6bb6195dace3d94f4df050cf2d8dad9 @ajashton ajashton committed Jul 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 configure.py.sample
View
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+from os import path
from collections import defaultdict
config = defaultdict(defaultdict)
@@ -10,10 +11,9 @@ config["importer"] = "osm2pgsql" # either 'imposm' or 'osm2pgsql'
# in which the project is stored
config["name"] = "OSM Bright"
-# The absolute path to your MapBox projects directory.
-# In Mac & Ubuntu it's /Users/<your_user_name>/Documents/MapBox/project aka ~/Documents/MapBox/project
-# In Windows, this defaults to C:\Users\<your_user_name>\Documents\Mapbox\project aka %USERPROFILE%\Documents\Mapbox\project
-config["path"] = "/Users/<your_user_name>/Documents/MapBox/project/"
+# The absolute path to your MapBox projects directory. You should
+# not need to change this unless you have configured TileMill specially
+config["path"] = path.expanduser("~/Documents/MapBox/project")
# PostGIS connection setup
# Leave empty for Mapnik defaults. The only required parameter is dbname.

0 comments on commit b033acd

Please sign in to comment.