Polish code

test=develop
ce_debug
minqiyang 6 years ago
parent 42d1b3f786
commit ab084b6e6c

@ -34,12 +34,13 @@ from __future__ import print_function
import six
import numpy as np
# NOTE(minqiyang): this is an ugly fix for the numpy bug reported here
# FIXME(minqiyang): this is an ugly fix for the numpy bug reported here
# https://github.com/numpy/numpy/issues/12497
if six.PY3:
import subprocess
import sys
import_cv2_proc = subprocess.Popen([sys.executable, "-c", "import cv2"],
import_cv2_proc = subprocess.Popen(
[sys.executable, "-c", "import cv2"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = import_cv2_proc.communicate()

Loading…
Cancel
Save