diff --git a/startup/94-sample.py b/startup/94-sample.py index 743c62c..ac35505 100644 --- a/startup/94-sample.py +++ b/startup/94-sample.py @@ -2132,7 +2132,7 @@ def handle_file(self, detector, extra=None, verbosity=3, subdirs=True, linksave= return filename = detector.tiff.full_file_name.get() # RL, 20210831 - if os.path.isfile(filename) == False: + if not os.path.exists(filename): return print("File does not exist") # Alternate method to get the last filename # filename = '{:s}/{:s}.tiff'.format( detector.tiff.file_path.get(), detector.tiff.file_name.get() )