Skip to content

Commit

Permalink
make streamupdate work from other directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Apr 12, 2012
1 parent 7a774e7 commit 35a62e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamupdate.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
cachemax = 2591999 cachemax = 2591999


tmp = "/dev/shm/" tmp = "/dev/shm/"
config = json.load(open("config.json")) moddir = os.path.dirname(__file__)
config = json.load(open(os.path.join(moddir, "config.json")))


host = config.get("DbHost", "localhost") host = config.get("DbHost", "localhost")
port = config.get("DbPort", 27017) port = config.get("DbPort", 27017)
Expand Down

0 comments on commit 35a62e4

Please sign in to comment.