Explorar o código

test interface

fangjiasheng %!s(int64=2) %!d(string=hai) anos
pai
achega
da606fa7e9
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      format_convert/convert_need_interface.py

+ 9 - 0
format_convert/convert_need_interface.py

@@ -784,3 +784,12 @@ def interface_pool_gunicorn(interface_type):
 #     else:
 #         log("port_pool " + interface_type + " " + str(port_flag) + " " + soffice_port_list[port_index])
 #         return soffice_port_list[port_index]
+
+
+if __name__ == "__main__":
+    from format_convert.utils import set_flask_global
+    _global._init()
+    set_flask_global()
+
+    for i in range(10):
+        print("result", interface_pool_gunicorn("ocr"))