From 196c5b1ea6a7370ed6fb3f3e4b405a9d0dcee551 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Jul 2019 02:49:53 +0200 Subject: Double-dummy analysis for PBN files --- http/api/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'http/api') diff --git a/http/api/api.py b/http/api/api.py index be2635f..6a9a785 100644 --- a/http/api/api.py +++ b/http/api/api.py @@ -6,7 +6,10 @@ from StringIO import StringIO from mod_python import apache, Session OLDPATH = copy.copy(sys.path) -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) +sys.path.append( + os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) +sys.path.append( + os.path.abspath(os.path.join(os.path.dirname(__file__), '../../pybcdd'))) from dealconvert import DealConverter sys.path = OLDPATH @@ -95,7 +98,7 @@ def handle_upload(response, request): try: output_name = '.'.join(params['name'].split('.')[:-1] + [output_type]) output_return['name'] = output_name - output = converter.detect_format(output_name) + output = converter.detect_format(output_name, False) output_id, output_path = _get_file_id() token = _get_rand_string(16) output_buffer = StringIO() -- cgit v1.2.3