mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 21:30:15 +08:00
Fix trim
This commit is contained in:
parent
058e5dc634
commit
607fcf7321
@ -651,6 +651,7 @@ def trim_memory() -> bool:
|
|||||||
try:
|
try:
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
import ctypes
|
import ctypes
|
||||||
|
import ctypes.util
|
||||||
libc_path = ctypes.util.find_library('c')
|
libc_path = ctypes.util.find_library('c')
|
||||||
if not libc_path:
|
if not libc_path:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user