mirror of
https://github.com/hacks-guide/MSET9.git
synced 2026-05-03 14:40:28 +00:00
Try to fix tmp update checking
This commit is contained in:
@@ -168,7 +168,10 @@ if osver == "Darwin":
|
||||
if dirname.startswith(tmpprefix):
|
||||
dirpath = f"{systmp}/{dirname}"
|
||||
script = f"{dirpath}/mset9.py"
|
||||
if os.path.exists(script) and os.stat(script).st_mtime > os.stat(thisfile).st_mtime:
|
||||
tmp_st = os.stat(script)
|
||||
this_st = os.stat(thisfile)
|
||||
# hope file size is enough fix... checksum is a bit heavy i assume
|
||||
if os.path.exists(script) and tmp_st.st_mtime > this_st.st_mtime and tmp_st.st_size == this_st.st_size:
|
||||
tmpdir = dirpath
|
||||
break
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user