mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Make sure windows permission issues don't mess things up.
This commit is contained in:
parent
815fefc48a
commit
ff255d9dcd
2
main.py
2
main.py
@ -57,7 +57,7 @@ def hijack_progress(server):
|
|||||||
def cleanup_temp():
|
def cleanup_temp():
|
||||||
temp_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "temp")
|
temp_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "temp")
|
||||||
if os.path.exists(temp_dir):
|
if os.path.exists(temp_dir):
|
||||||
shutil.rmtree(temp_dir)
|
shutil.rmtree(temp_dir, ignore_errors=True)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
cleanup_temp()
|
cleanup_temp()
|
||||||
|
Loading…
Reference in New Issue
Block a user