mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 06:12:23 +08:00
added try except to deal with missing multiprocessing.
This commit is contained in:
@@ -2,10 +2,14 @@ import numpy as np
|
||||
import _colormixer
|
||||
import _histograms
|
||||
import threading
|
||||
import multiprocessing
|
||||
|
||||
# utilities to make life easier for plugin writers.
|
||||
|
||||
CPU_COUNT = multiprocessing.cpu_count()
|
||||
try:
|
||||
import multiprocessing
|
||||
CPU_COUNT = multiprocessing.cpu_count()
|
||||
except ImportError:
|
||||
CPU_COUNT = 2
|
||||
|
||||
class GuiLockError(Exception):
|
||||
def __init__(self, msg):
|
||||
|
||||
Reference in New Issue
Block a user