summaryrefslogtreecommitdiff
path: root/http/api
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-18 02:49:53 +0200
committeremkael <emkael@tlen.pl>2019-07-18 02:50:55 +0200
commit196c5b1ea6a7370ed6fb3f3e4b405a9d0dcee551 (patch)
tree18e6f2cd7fb688ec1c28d8cb3221902da942e451 /http/api
parent06b85057c1dd79097a874143dfdf56d5e0d1ea98 (diff)
Double-dummy analysis for PBN files
Diffstat (limited to 'http/api')
-rw-r--r--http/api/api.py7
1 files changed, 5 insertions, 2 deletions
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()