Permalink
Browse files

create ~/.watcher if it does not exist

  • Loading branch information...
gregghz committed Sep 14, 2013
1 parent ada84c5 commit a6281174a439279a2adf8db504a0bddde7fdfebf
Showing with 5 additions and 0 deletions.
  1. +5 −0 watcher.py
@@ -379,6 +379,11 @@ def defineWatcherDirectory():
if __name__ == "__main__":
watcher_dir = defineWatcherDirectory()
try:
os.mkdir(watcher_dir)
except OSError:
pass
log = watcher_dir + '/watcher.log'
pidfile = watcher_dir + '/watcher.pid'
# create the log

0 comments on commit a628117

Please sign in to comment.