Skip to content

Commit

Permalink
Default geocode.cache in cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
geduldig committed Feb 15, 2013
1 parent 41105de commit 8ed5953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author='Jonas Geduldig',
author_email='[email protected]',
packages=['twittergeo'],
package_data={'': ['credentials.txt', 'geocode.cache']},
package_data={'': []},
url='https://github.com/geduldig/twittergeo',
download_url = 'https://github.com/gedldig/twittergeo/tarball/master',
license='MIT',
Expand Down
5 changes: 3 additions & 2 deletions twittergeo/Geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def __init__(self, cache_file=None):
self.last_exec = None # time updated at each geocode request

if cache_file is None:
path = os.path.dirname(__file__)
cache_file = os.path.join(path, DEFAULT_CACHE_FILE)
#path = os.path.dirname(__file__)
#cache_file = os.path.join(path, DEFAULT_CACHE_FILE)
cache_file = DEFAULT_CACHE_FILE

# cache is a persistent dict with place address as key and lat/lng and count as value
self.cache = fridge.Fridge(cache_file)
Expand Down

0 comments on commit 8ed5953

Please sign in to comment.