From 01db7dd6a4816b8f6b15cf96a99eb0b5236dacf4 Mon Sep 17 00:00:00 2001 From: "Arthur T. Glowacki" <aglowacki@aps.anl.gov> Date: Fri, 2 Oct 2015 21:28:54 +0000 Subject: [PATCH] minor update to use os.path.join for windows compatibility --- .../dm/daq_web_service/service/impl/dmFileSystemEventHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/dm/daq_web_service/service/impl/dmFileSystemEventHandler.py b/src/python/dm/daq_web_service/service/impl/dmFileSystemEventHandler.py index b7ba939b..1fb34486 100755 --- a/src/python/dm/daq_web_service/service/impl/dmFileSystemEventHandler.py +++ b/src/python/dm/daq_web_service/service/impl/dmFileSystemEventHandler.py @@ -39,7 +39,7 @@ class DmFileSystemEventHandler(FileSystemEventHandler): self.logger.debug('File system directory modified event: %s' % (event.__dict__)) if event.is_directory: 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)) if len(files) > 0: filePath = max(files, key=os.path.getctime) -- GitLab