Skip to content

Commit

Permalink
skip eggshell
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Dec 18, 2018
1 parent 009f707 commit 002d39f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions emu/processes/wps_output_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import os
from pywps import Process, ComplexOutput
from pywps import FORMATS
from eggshell.config import Paths
import emu

import logging
LOGGER = logging.getLogger("PYWPS")
paths = Paths(emu)

# TODO: can be replaced by eggshell function.
DATA_DIR = os.path.join(os.path.dirname(__file__), '..', 'data')


class OutputFormats(Process):
Expand Down Expand Up @@ -43,8 +44,8 @@ def __init__(self):
def _handler(request, response):
response.update_status('PyWPS Process started.', 0)

response.outputs['netcdf'].file = os.path.join(paths.data, 'dummy.nc')
response.outputs['json'].file = os.path.join(paths.data, 'dummy.json')
response.outputs['netcdf'].file = os.path.join(DATA_DIR, 'dummy.nc')
response.outputs['json'].file = os.path.join(DATA_DIR, 'dummy.json')

response.update_status('PyWPS Process completed.', 100)
return response

0 comments on commit 002d39f

Please sign in to comment.