diff --git a/MSET9_installer_script/mset9.py b/MSET9_installer_script/mset9.py index 7b79632..f70cc43 100644 --- a/MSET9_installer_script/mset9.py +++ b/MSET9_installer_script/mset9.py @@ -119,9 +119,7 @@ if osver == "Darwin": if dirname.startswith(tmpprefix): dirpath = f"{systmp}/{dirname}" script = f"{dirpath}/mset9.py" - if not os.path.exists(script): - continue - elif os.stat(script).st_mtime > os.stat(thisfile).st_mtime: + if os.path.exists(script) and os.stat(script).st_mtime > os.stat(thisfile).st_mtime: tmpdir = dirpath break else: