Fix import error on windows
parent
9736bd2d10
commit
079c224f17
|
@ -26,7 +26,7 @@ from rich.progress import Progress
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
# Increase file_limit to prevent error "Too many open files"
|
# Increase file_limit to prevent error "Too many open files"
|
||||||
if platform != "Windows":
|
if platform.system() != "Windows":
|
||||||
import resource
|
import resource
|
||||||
|
|
||||||
file_limit = list(resource.getrlimit(resource.RLIMIT_NOFILE))
|
file_limit = list(resource.getrlimit(resource.RLIMIT_NOFILE))
|
||||||
|
|
Loading…
Reference in New Issue