Skip to content
Snippets Groups Projects
Commit 01db7dd6 authored by Arthur T. Glowacki's avatar Arthur T. Glowacki
Browse files

minor update to use os.path.join for windows compatibility

parent 7a428f64
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ class DmFileSystemEventHandler(FileSystemEventHandler): ...@@ -39,7 +39,7 @@ class DmFileSystemEventHandler(FileSystemEventHandler):
self.logger.debug('File system directory modified event: %s' % (event.__dict__)) self.logger.debug('File system directory modified event: %s' % (event.__dict__))
if event.is_directory: if event.is_directory:
try: try:
files = glob.glob(event.src_path+'/*.*') files = glob.glob(os.path.join(event.src_path,'*.*'))
self.logger.debug('File system directory modified event: %s , src path: %s , latest files: %s' % (event.__dict__, event.src_path, files)) self.logger.debug('File system directory modified event: %s , src path: %s , latest files: %s' % (event.__dict__, event.src_path, files))
if len(files) > 0: if len(files) > 0:
filePath = max(files, key=os.path.getctime) filePath = max(files, key=os.path.getctime)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment