Fixed bug where path would not be normpathed

This commit is contained in:
Rudi Grinberg 2012-09-13 11:38:40 -04:00
parent b28116f622
commit a832ad61dc
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,7 @@ class AirtimeMessageReceiver(Loggable):
% md_path, e)
def new_watch(self, msg, restart=False):
msg['directory'] = normpath(msg['directory'])
self.logger.info("Creating watch for directory: '%s'" %
msg['directory'])
if not os.path.exists(msg['directory']):
@ -145,6 +146,7 @@ class AirtimeMessageReceiver(Loggable):
self.manager.add_watch_directory(msg['directory'])
def remove_watch(self, msg):
msg['directory'] = normpath(msg['directory'])
self.logger.info("Removing watch from directory: '%s'" %
msg['directory'])
self.manager.remove_watch_directory(msg['directory'])